Closed Bug 1822544 Opened 1 year ago Closed 1 year ago

Crash in [@ mozilla::a11y::Accessible::IsOuterDoc]

Categories

(Core :: Disability Access APIs, defect)

Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox111 --- unaffected
firefox112 --- fixed
firefox113 --- fixed

People

(Reporter: RyanVM, Assigned: eeejay)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

We fixed crashes with this signature back in the Fx109 timeframe, but we're seeing other macOS crashes more recently.

Crash report: https://crash-stats.mozilla.org/report/index/24e152f6-582d-467b-8c14-b1f6a0230315

Reason: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS

Top 10 frames of crashing thread:

0  XUL  mozilla::a11y::Accessible::IsOuterDoc const  accessible/basetypes/Accessible.h:531
0  XUL  mozilla::a11y::TextLeafPoint::TextLeafPoint  accessible/base/TextLeafRange.cpp:582
1  XUL  mozilla::a11y::TextLeafPoint::TextLeafPoint  accessible/base/TextLeafRange.cpp:579
1  XUL  mozilla::a11y::TextLeafRange::Iterator::BeginIterator  accessible/base/TextLeafRange.cpp:1868
2  XUL  mozilla::a11y::TextLeafRange::begin const  accessible/base/TextLeafRange.h:339
2  XUL  mozilla::a11y::CachedTextMarkerRange::Length const  accessible/mac/CachedTextMarker.mm:356
3  XUL  mozilla::a11y::GeckoTextMarkerRange::Length const  accessible/mac/GeckoTextMarker.h:187
3  XUL  -[MOXTextMarkerDelegate moxLengthForTextMarkerRange:]  accessible/mac/MOXTextMarkerDelegate.mm:259
4  XUL  -[MOXAccessibleBase accessibilityAttributeValue:forParameter:]  accessible/mac/MOXAccessibleBase.mm:359
5  AppKit  ___NSAccessibilityEntryPointValueForAttributeWithParameter_block_invoke.777  
Flags: needinfo?(eitan)

We are not promised a valid range from an external-facing API.
We already check if the range is valid for other operations.

Assignee: nobody → eitan
Status: NEW → ASSIGNED
Flags: needinfo?(eitan)
Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/de3c876412c6
Return 0 for length of invalid range. r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

Please nominate this for Beta approval when you get a chance.

Flags: needinfo?(eitan)

Comment on attachment 9323306 [details]
Bug 1822544 - Return 0 for length of invalid range. r?Jamie!

Beta/Release Uplift Approval Request

  • User impact if declined: Crash
  • 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): This is a simple early return for invalid platform input
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(eitan)
Attachment #9323306 - Flags: approval-mozilla-beta?

Comment on attachment 9323306 [details]
Bug 1822544 - Return 0 for length of invalid range. r?Jamie!

Approved for 112.0b5

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

Attachment

General

Created:
Updated:
Size: