[Webkit-unassigned] [Bug 223903] New: UBSan: AlternativeTextController::dismiss()/dismissSoon(): runtime error: load of value nnn, which is not a valid value for type 'bool'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 29 13:54:53 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=223903

            Bug ID: 223903
           Summary: UBSan:
                    AlternativeTextController::dismiss()/dismissSoon():
                    runtime error: load of value nnn, which is not a valid
                    value for type 'bool'
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: dbates at webkit.org, wenson_hsieh at apple.com

Running all layout tests with a Release+UBSan build of WebKit (see Bug 176131) results in ~449 tests hitting this UBSan warning at least once with different values of "nnn":

    editing/AlternativeTextController.cpp:180:10: runtime error: load of value nnn, which is not a valid value for type 'bool'
    editing/AlternativeTextController.cpp:190:10: runtime error: load of value nnn, which is not a valid value for type 'bool'

This seems to result from AlternativeTextController::m_isActive not being initialized in the constructor.

In both cases the code that hits the UBSan runtime error is:

    if (!m_isActive)  // UBSan runtime error on line 180 or 190 of editing/AlternativeTextController.cpp.
        return;

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210329/3008ef88/attachment.htm>


More information about the webkit-unassigned mailing list