h264: check buffer size before accessing it
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Nov 2013 09:15:24 +0000 (10:15 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 21 Nov 2013 19:54:20 +0000 (20:54 +0100)
commitf0259a587ee3419dd894873ea617b4c98eeaca1c
tree66f947c03fc49ab29504130040289cd0071b775b
parent1f3e56b6dcc163a705704e98569d4850a31d651c
h264: check buffer size before accessing it

Fixes invalid reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/h264.c