mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
cdrom_device_fillpath() now builds each cue and track URI with a single bounded snprintf and shares cdrom_device_fillimagepath()'s contract: the output is always terminated and the required length is returned, so a result >= len reports truncation. CUE seeks take the same checked base-plus-offset path as the BIN and cooked-image branches; an invalid whence or an offset that would overflow or land before the start fails and leaves the position unchanged. cdrom_cuesheet_overflow_test covers both under ASan/UBSan.