Closed Bug 1651000 Opened 4 years ago Closed 4 years ago

CacheIR.cpp: Wrong null check in jit::NewWrapperWithObjectShape()

Categories

(Core :: JavaScript Engine: JIT, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: izbyshev, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

obj is checked for NULL at https://searchfox.org/mozilla-central/rev/91d82d7c/js/src/jit/CacheIR.cpp#6834, but it seems like wrapper should be checked instead.

Component: Source Code Analysis → JavaScript Engine: JIT
Flags: needinfo?(jdemooij)
Product: Firefox Build System → Core

Found by static analysis.

I wish we didn't have these browser-specific optimizations. Maybe after Warp we
can make bigger changes to our object/proxy model and address this.

Assignee: nobody → jdemooij

Thanks for the bug report!

Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(jdemooij)
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aa2d5c9aee45
Fix OOM check in NewWrapperWithObjectShape. r=iain
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: