Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70683

iOS accessibility crash due to empty array exception

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            frederik Frederik Gladhorn
            giantguppy Christopher Anderson
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes