Bug 146304

Summary: ExceptionHelpers.cpp::functionCallBase doesn't properly handle embedded comments and string literals
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Michael Saboff
Reported 2015-06-24 18:33:55 PDT
The loop in functionCallBase() tries to match parenthesis. It tries to recognize multiline comments, but either the comment constructs or parens could actually be inside a string literal and the code doesn't handle those cases.
Attachments
Michael Saboff
Comment 1 2015-06-25 09:23:37 PDT
Here are some examples of cases that the function does not properly handle: foo.bar("/abc\)*/") blah(/* A /* B */ x, y) baz("((((")
Note You need to log in before you can comment on or make changes to this bug.