[FFmpeg-devel] [PATCH] Real Audio 14.4 decoder: fix access to LPC coefficients

Francesco Lavra francescolavra
Sat Feb 13 17:46:19 CET 2010

Some functions in libavcodec/ra144.c access the lpc_tables arrays of
RA144Context as if they had 30 elements, but they have 10 elements
Although incorrect, the current code doesn't crash because RA144Context
has enough bytes after lpc_tables that access to lpc_tables beyond its
limits still falls in the RA144Context structure. Decoding is not
affected either, because the bogus LPC coefficients are not actually
used for decoding.
But that still should be fixed, and here is a patch for it.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ra144.patch
Type: text/x-patch
Size: 1069 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100213/8ab3608f/attachment.bin>

More information about the ffmpeg-devel mailing list