harden h264 decoding to prevent some crashes when input data is corrupted.
authorFrancois Oligny-Lemieux <eucloid@gmail.com>
Fri, 19 Jan 2007 09:37:04 +0000 (09:37 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 19 Jan 2007 09:37:04 +0000 (09:37 +0000)
commitac658be5db5baa01546715994fbd193a855cbc73
tree2855f3402cb8a80fd8909e54454c437eed623c65
parent045bdb5ab43526b33b6866461bdf9f0ea6a2220f
harden h264 decoding to prevent some crashes when input data is corrupted.
Patch by Frank %eucloid A gmail P com%
date: Jan 18, 2007 6:48 PM
subject: Re: [Ffmpeg-devel] h264, protection against corrupted data (second try patch)
AND
date: Jan 17, 2007 8:22 PM
subject: [Ffmpeg-devel] h264, protection against corrupted data

this also fixes a possible security issue (the sps and pps ids where not checked,
then used as index into an array of sps/pps structs which was then filled with data from the bitstream)

Originally committed as revision 7585 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c