WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 146304
ExceptionHelpers.cpp::functionCallBase doesn't properly handle embedded comments and string literals
https://bugs.webkit.org/show_bug.cgi?id=146304
Summary
ExceptionHelpers.cpp::functionCallBase doesn't properly handle embedded comme...
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug