]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/filepath: add empty path check
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 14 Nov 2024 18:33:11 +0000 (13:33 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 27 Feb 2025 18:41:52 +0000 (13:41 -0500)
commite62fce4ec98ab03d9e71bd6e49bf2d8568a8fe71
tree827472d06833b47146064f0adca0e280784d8c2b
parent5e0599bfcd65859829d64311a88edfff9077e6fc
include/filepath: add empty path check

When passing an empty string to filepath, it would test if the first character
is '/' which is an invalid access through std::string_view.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
Fixes: https://tracker.ceph.com/issues/66373
src/include/filepath.h