[Webkit-unassigned] [Bug 254663] New: CacheStorageManager creates 'salt' file in cwd when there is no path

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 29 08:22:38 PDT 2023


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

            Bug ID: 254663
           Summary: CacheStorageManager creates 'salt' file in cwd when
                    there is no path
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: max at schmitt.mx

As per:

https://github.com/WebKit/WebKit/blob/1490a5c2a806d767de0b4e2dd113a35053467eea/Source/WebKit/NetworkProcess/storage/OriginStorageManager.cpp#L571

m_path

from here: https://github.com/WebKit/WebKit/blob/1490a5c2a806d767de0b4e2dd113a35053467eea/Source/WebKit/NetworkProcess/storage/CacheStorageManager.cpp#L233

can be an empty string.

This regressed in https://github.com/WebKit/WebKit/commit/5d9c260954a94cf6ce71bf69ab4b23c92b8e3e02

that a random file in the CWD with the name 'salt' gets created because the https://github.com/WebKit/WebKit/blob/1490a5c2a806d767de0b4e2dd113a35053467eea/Source/WebKit/NetworkProcess/storage/CacheStorageManager.cpp#L228 does not check if m_path is an empty string.

-- 
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/20230329/5fc0b933/attachment-0001.htm>


More information about the webkit-unassigned mailing list