Files
ppsspp/Common
Henrik RydgårdandClaude Sonnet 5 df751d5571 URL/VFS: fix latent pointer/index UB on empty or tiny input
UriDecode() formed SRC_END - 2 unconditionally, a pointer before the
start of the buffer (UB) for a 0- or 1-byte input. IsLocalAbsolutePath()
indexed path[0]/path[1] on a std::string_view with no bounds check,
UB for an empty path (path[0]) or a 1-byte path on Windows (path[1]).
Neither was known to crash in practice, but both are real UB flagged
by hardened/UBSan builds and easy to trigger (e.g. an empty query
string, or listing the VFS root).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01L4QAoxV2KY7ek4PcZw3WvY
2026-08-10 11:26:39 +02:00
..
2026-08-10 04:59:55 -04:00
…
…
…
…
2026-03-30 11:34:19 -06:00
…
2026-07-30 10:03:15 +02:00
2026-07-29 14:42:24 +02:00
2026-06-02 17:16:45 +02:00
…
2026-05-16 10:40:08 +02:00
…
…
2026-07-27 21:33:14 +02:00
2026-07-27 18:37:28 +02:00