[Webkit-unassigned] [Bug 231913] New: Do not use strerror()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 18 15:40:33 PDT 2021


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

            Bug ID: 231913
           Summary: Do not use strerror()
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org

strerror() is sadly documented as "MT-Unsafe race:strerror" because it returns strings that point into static memory and it may modify those strings after the function call returns, e.g. to create strings of the form "Unknown error code nnn" which is a real shame. Accordingly, it cannot safely be used anywhere in WebKit. This bug attempts to address all cases outside Source/ThirdParty.

This will not build on Apple ports yet because it adds new files. XCode help would be appreciated.

-- 
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/20211018/c7d3cb56/attachment-0001.htm>


More information about the webkit-unassigned mailing list