Closed Bug 1754305 Opened 4 years ago Closed 4 years ago

Upgrade Maybe assertions to MOZ_RELEASE_ASSERT

Categories

(Core :: MFBT, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox-esr91 98+ fixed
firefox97 --- wontfix
firefox98 --- fixed
firefox99 --- fixed

People

(Reporter: nika, Assigned: nika)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

These assertions are already diagnostic asserts, and this will make
failures to check Maybe into safe crashes rather than security bugs on
all branches.

A failure to check Maybe is more dangerous than a null pointer
dereference, as the generated code will produce a valid reference to
uninitialized data rather than a null reference which should safely
segfault.

Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/baec998d3775 Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch

[Tracking Requested - why for this release]: It would be nice to uplift this to ESR, so they'll get the same benefit of these checks.

Nika, did you want to nominate this for uplift given comment 4? It grafts cleanly.

Flags: needinfo?(nika)

Comment on attachment 9262936 [details]
Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium

Beta/Release Uplift Approval Request

  • User impact if declined: Increased severity of a class of crashes
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Just upgrading some diagnostic asserts to release asserts
  • String changes made/needed: N/A

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Easy to uplift patch which provides mildly increased security with very low risk
  • User impact if declined: Increased severity of a class of crashes
  • Fix Landed on Version: 99
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Just upgrading some diagnostic asserts to release asserts
Flags: needinfo?(nika)
Attachment #9262936 - Flags: approval-mozilla-esr91?
Attachment #9262936 - Flags: approval-mozilla-beta?

Comment on attachment 9262936 [details]
Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium

Approved for 98 beta 7, thanks.

Attachment #9262936 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9262936 [details]
Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium

Approved for 91.7esr.

Attachment #9262936 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
Regressions: 1759506
Component: XPCOM → MFBT
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: