1
0
Fork 0
forked from len0rd/rockbox
foxbox/lib/rbcodec/codecs/libffmpegFLAC
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
..
arm.h Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
arm.S Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
bitstream.h iPod Classic: disable IRAM1 2018-07-30 18:50:27 -04:00
coldfire.h Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
coldfire.S Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
COPYING Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
decoder.c rbcodec: Fix FLAC out of bounds read 2023-01-15 16:11:28 -05:00
decoder.h Nudge flac towards upstream FS#13266 2021-03-02 23:48:05 +00:00
golomb.h Nudge flac towards upstream FS#13266 2021-03-02 23:48:05 +00:00
libffmpegFLAC.make Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
README Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
README.rockbox Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
shndec.c Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
shndec.h Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
SOURCES Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00

FFmpeg README
-------------

1) Documentation
----------------

* Read the documentation in the doc/ directory.

2) Licensing
------------

* Read the file COPYING. ffmpeg and the associated libraries EXCEPT
  liba52 and libpostproc are licensed under the Lesser GNU General
  Public License. 

* liba52 and libpostproc are distributed under the GNU General Public
  License and their compilation and use is optional in ffmpeg.

Fabrice Bellard.