Bug 195274

Summary: WebDriver: fix String not terminated with null caracter
Product: WebKit Reporter: Karl Leplat <karl.leplat_ext>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, cgarcia, commit-queue, olivier.blin, webkit-bug-importer, zan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Karl Leplat 2019-03-04 04:45:50 PST
WebDriver: fix String not terminated with null caracter
    
This has been detected by an exception returned by the function
evaluateJavaScriptFunction with the message :
[native code]: JS ERROR SyntaxError: Unexpected keyword 'function'. Expected ')' to end a compound expression.
    
Function has been initialized with a string that come from char array, not a null-terminated string.
Comment 1 Karl Leplat 2019-03-04 05:22:04 PST
Created attachment 363504 [details]
Patch
Comment 2 WebKit Commit Bot 2019-03-04 06:30:51 PST
Comment on attachment 363504 [details]
Patch

Clearing flags on attachment: 363504

Committed r242352: <https://trac.webkit.org/changeset/242352>
Comment 3 WebKit Commit Bot 2019-03-04 06:30:53 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2019-03-04 06:40:55 PST
<rdar://problem/48560927>