[Webkit-unassigned] [Bug 187246] New: String buffer is reallocated in FileSystem::fileSystemRepresentation.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 2 07:19:13 PDT 2018


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

            Bug ID: 187246
           Summary: String buffer is reallocated in
                    FileSystem::fileSystemRepresentation.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pvollan at apple.com

The length of the new string buffer is computed by CFStringGetMaximumSizeOfFileSystemRepresentation, which over-estimates the required length. To save space, the string buffer is currently reallocated before returning the string. Since the returned string is never stored by any callers as far as I can see, reallocating is not necessary. The caller can reallocate the buffer if the string is going to be stored.

-- 
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/20180702/8cae78a7/attachment.html>


More information about the webkit-unassigned mailing list