Bug 195274 - WebDriver: fix String not terminated with null caracter
Summary: WebDriver: fix String not terminated with null caracter
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-04 04:45 PST by Karl Leplat
Modified: 2019-03-04 06:40 PST (History)
6 users (show)

See Also:


Attachments
Patch (6.33 KB, patch)
2019-03-04 05:22 PST, Karl Leplat
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>