Upgrade Maybe assertions to MOZ_RELEASE_ASSERT
Categories
(Core :: MFBT, enhancement)
Tracking
()
People
(Reporter: nika, Assigned: nika)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
| Assignee | ||
Comment 1•4 years ago
|
||
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.
Comment 3•4 years ago
|
||
| bugherder | ||
Comment 4•4 years ago
|
||
[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.
Comment 5•4 years ago
|
||
Nika, did you want to nominate this for uplift given comment 4? It grafts cleanly.
| Assignee | ||
Comment 6•4 years ago
|
||
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
Comment 7•4 years ago
|
||
Comment on attachment 9262936 [details]
Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium
Approved for 98 beta 7, thanks.
Comment 8•4 years ago
|
||
| bugherder uplift | ||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
Comment on attachment 9262936 [details]
Bug 1754305 - Make assertions in Maybe MOZ_RELEASE_ASSERT, r=glandium
Approved for 91.7esr.
Comment 10•4 years ago
|
||
| bugherder uplift | ||
Updated•4 years ago
|
Description
•