Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.1, 5.9.6, 5.9.7
-
None
-
iOS 12.0
-
-
8e528d8bd08406e9cc86abcfe153f02d585d3654 (qt/qtbase/5.12) e4df651d031c6e9f5627f7f3be5da0c78db62084 (qt/qtbase/5.9)
Description
Some accessibility settings (e.g. VoiceOver is one) trigger a crash at startup. The problem is that in quiview_accessibility.mm, function 'indexOfAccessibilityElement' does this...
return [m_accessibleElements indexOfObject:element];
...without checking to see whether 'm_accessibleElements' has anything in it. I expect that this happens in newer Qt versions as well.
Apple's documentation says that 'indexOfAccessibilityElement' should return "NSNotFound if the element does not exist." So a simple check would alleviate the exception. Whether it's a logical problem for this array to be empty here I don't know.
Attachments
For Gerrit Dashboard: QTBUG-70683 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
262410,4 | iOS Accessibility: implement accessibilityElements and check indexing | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |
267065,8 | iOS Accessibility: implement accessibilityElements and check indexing | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |