rockbox/lib/rbcodec
Aidan MacDonald 56442f6b7f rbcodec: Fix FLAC out of bounds read
Commit 6bcd830490 ported an optimization to decode_subframe_fixed()
from FFmpeg (upstream commit 08965b22e2). This contains an out of
bounds read, which doesn't affect the decoder output, but makes ASAN
complain.

FFmpeg fixed the out of bounds read (upstream commit 0ec7b71de8) but
that appears to increase code size a lot.

Inlining the initialization of a, b, c, d into the switch produces
similar code as the non-bounds-checked version with only a handful
of instructions of overhead (checked on MIPS & ARM).

Change-Id: I053fac4efc4676b133eb7545c80e23f37fb00d86
2023-01-15 16:11:28 -05:00
..
codecs rbcodec: Fix FLAC out of bounds read 2023-01-15 16:11:28 -05:00
dsp Remove buflib allocation names, part two 2023-01-13 10:32:54 +00:00
metadata [BugFix] Fix some Shif related UB -- ASAN 2023-01-04 22:00:25 -05:00
test "Fix" warble build warnings 800bc000a0 2023-01-15 13:33:22 +00:00
platform.h rbcodec dsp: Move dsp_sample_io_configure() to its own file 2022-12-22 17:20:14 -05:00
rbcodec.make [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
rbcodecconfig-example.h Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
rbcodecplatform-unix.h Enable buflib and core_alloc for warble. 2015-01-19 21:30:03 +01:00
SOURCES rbcodec dsp: Move dsp_sample_io_configure() to its own file 2022-12-22 17:20:14 -05:00