[Webkit-unassigned] [Bug 170994] New: Stop using strcpy() in WebKit::EnvironmentUtilities::stripValuesEndingWithString()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 19 09:08:56 PDT 2017


            Bug ID: 170994
           Summary: Stop using strcpy() in
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org

WebKit::EnvironmentUtilities::stripValuesEndingWithString() uses strcpy(), which causes static analysis and other tools to warn of its use.

In this case, the contents of a const char* buffer is only ever being shrunk, but we can switch to use strlcpy() instead (since EnvironmentUtilities.cpp is only used on Darwin-based platforms).

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/20170419/a6afdf92/attachment.html>

More information about the webkit-unassigned mailing list