h264: check buffer size before accessing it
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Nov 2013 09:15:24 +0000 (10:15 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:05:18 +0000 (20:05 -0400)
commit2cbc8dfeddcbe00ef5f112162912bb49c1dd6623
tree1c9d21c1619c0f28660e244c1551a1e08f5153f5
parentafab4c422b60e83419e10ee3dd4ba7001798b3db
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