Closed Bug 850873 Opened 7 years ago Closed 7 years ago

Fix null-checking in JS_NewArrayBufferWithContents.

Categories

(Core :: JavaScript Engine, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

via IRC:

<Waldo> sfink: JS_NewArrayBufferWithContents is missing a null-check of JSObject *obj = ArrayBufferObject::create(cx, 0); (and really should just assert that the input pointer is non-null, seems to me)
via IRC:

<Waldo> sfink: r+
Attachment #724616 - Flags: review+
Attachment #724616 - Flags: checkin+
https://hg.mozilla.org/mozilla-central/rev/df1c39f05b46
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.