Closed Bug 1751233 Opened 3 years ago Closed 3 years ago

Concurrent releases of CompilationStencil could yield to double-free

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: nbp, Assigned: nbp)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The way Stencils reference count is decremented could yield to an unlikely double free.
We should use the decremented value, instead of reloading the value after decrementing.

I do not think this is could be a security issue prior the introduction of off-thread delazification.

Severity: -- → S3
Priority: -- → P1
Pushed by npierron@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fca6b7c1a5be Decrement & Compare when releasing stencils. r=arai
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: