WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
179619
Make the jsc shell loadGetterFromGetterSetter() function more robust.
https://bugs.webkit.org/show_bug.cgi?id=179619
Summary
Make the jsc shell loadGetterFromGetterSetter() function more robust.
Mark Lam
Reported
2017-11-13 10:49:05 PST
This helps avoid false positives due to abuse of this test function when doing crashes. <
rdar://problem/35492518
>
Attachments
proposed patch.
(4.56 KB, patch)
2017-11-13 11:38 PST
,
Mark Lam
saam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2017-11-13 11:38:07 PST
Created
attachment 326776
[details]
proposed patch.
Saam Barati
Comment 2
2017-11-13 11:42:30 PST
Comment on
attachment 326776
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=326776&action=review
> Source/JavaScriptCore/jsc.cpp:3030 > + if (UNLIKELY(exec->argumentCount() < 1)) { > + throwTypeError(exec, scope, ASCIILiteral("Invalid use of loadGetterFromGetterSetter test function: missing argument")); > + return encodedJSValue(); > + }
This is unneeded unless you really care about the error message. This will fall out of the check below.
Mark Lam
Comment 3
2017-11-13 12:06:19 PST
Comment on
attachment 326776
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=326776&action=review
Thanks for the review.
>> Source/JavaScriptCore/jsc.cpp:3030 >> + } > > This is unneeded unless you really care about the error message. This will fall out of the check below.
I will remove this.
Mark Lam
Comment 4
2017-11-13 12:18:40 PST
Landed in
r224770
: <
http://trac.webkit.org/r224770
>.
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