Closed Bug 1662484 Opened 4 years ago Closed 4 years ago

Do not allow wrapping SourceSurfaceOffset around null surfaces

Categories

(Core :: Graphics, defect, P1)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- fixed
firefox80 --- wontfix
firefox81 --- fixed
firefox82 --- fixed

People

(Reporter: mikokm, Assigned: mikokm)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

The patch for bug 1627616 did not catch all the cases where SourceSurfaceOffset::mSurface could end up being nullptr.
This patch fixes the only other callsite where SourceSurfaceOffset is constructed, and adds a release assert in SourceSurfaceOffset::SourceSurfaceOffset().

Pushed by mikokm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/23935d3834d6
Do not allow wrapping SourceSurfaceOffset around null surfaces r=mstange
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Hi Miko, do we want this on Beta/ESR78? Please nominate if yes :)

Flags: needinfo?(mikokm)
Crash Signature: [@ mozilla::gfx::SourceSurfaceOffset::GetUnderlyingSurface ]
Keywords: crash

Comment on attachment 9173398 [details]
Bug 1662484 - Do not allow wrapping SourceSurfaceOffset around null surfaces r=mstange

Beta/Release Uplift Approval Request

  • User impact if declined: This is a follow-up to bug 1627616 that should fix the remaining cases of this crash signature (often occurring during device resets on Windows)
  • 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: Bug 1627616
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Low risk because the fix is effectively a null-pointer check that avoids the crash.
  • String changes made/needed:
Flags: needinfo?(mikokm)
Attachment #9173398 - Flags: approval-mozilla-beta?

Comment on attachment 9173398 [details]
Bug 1662484 - Do not allow wrapping SourceSurfaceOffset around null surfaces r=mstange

Approved for 81.0b9.

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

Comment on attachment 9173398 [details]
Bug 1662484 - Do not allow wrapping SourceSurfaceOffset around null surfaces r=mstange

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fixes one of the top crashes.
  • User impact if declined: Crashes, possibly related to device resets or OOM events, when surface creation fails.
  • Fix Landed on Version: 81
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Low risk because the fix is effectively a null-pointer check that avoids the crash.
  • String or UUID changes made by this patch:
Attachment #9173398 - Flags: approval-mozilla-esr78?

Comment on attachment 9173398 [details]
Bug 1662484 - Do not allow wrapping SourceSurfaceOffset around null surfaces r=mstange

Approved for 78.4esr.

Attachment #9173398 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: