[Webkit-unassigned] [Bug 224942] New: [WTF] Undefined behavior warning in StringBuilder::allocateBuffer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 22 12:49:28 PDT 2021


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

            Bug ID: 224942
           Summary: [WTF] Undefined behavior warning in
                    StringBuilder::allocateBuffer
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com

../../Source/WTF/wtf/text/StringBuilder.cpp:115:16: runtime error: null pointer passed as argument 2, which is declared to never be null

This occurs 24 times running the TestWTF executable

To reproduce:

- Compile with usban enabled with the following cmake arg: -DENABLE_SANITIZERS=undefined"
  - ./Tools/Scripts/build-webkit --use-icecream --release --gtk --cmakeargs="-DENABLE_SANITIZERS=undefined"
- Run the stringbuilder append check:
  - ./Tools/Scripts/webkit-flatpak --flatpak-verbose --release -c WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF --gtest_filter=StringBuilderTest.Append

-- 
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/20210422/4d8b6cdb/attachment-0001.htm>


More information about the webkit-unassigned mailing list