Bug 208275 - Enhance JSObjectGetProperty() to mitigate against null object pointers.
Summary: Enhance JSObjectGetProperty() to mitigate against null object pointers.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-26 16:16 PST by Mark Lam
Modified: 2020-02-26 16:30 PST (History)
7 users (show)

See Also:


Attachments
proposed patch. (1.41 KB, patch)
2020-02-26 16:23 PST, Mark Lam
rmorisset: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2020-02-26 16:16:52 PST
The client really shouldn't pass us a null JSObjectRef, but we'll be nice and mitigate it this time.

<rdar://problem/59789796>
Comment 1 Mark Lam 2020-02-26 16:17:44 PST
Oops ... wrong radar.  Need a new one.
Comment 2 Radar WebKit Bug Importer 2020-02-26 16:18:05 PST
<rdar://problem/59826325>
Comment 3 Mark Lam 2020-02-26 16:23:22 PST
Created attachment 391803 [details]
proposed patch.
Comment 4 Robin Morisset 2020-02-26 16:25:30 PST
Comment on attachment 391803 [details]
proposed patch.

r=me
Comment 5 Mark Lam 2020-02-26 16:30:05 PST
Thanks for the review.  Landed in r257529: <http://trac.webkit.org/r257529>.