h264: check buffer size before accessing it
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Nov 2013 09:15:24 +0000 (10:15 +0100)
committerSean McGovern <gseanmcg@gmail.com>
Mon, 14 Apr 2014 20:55:37 +0000 (16:55 -0400)
commitaf40847681b978441fdd25276685414f9e17820a
treebe0be79dc5a8907aaf8d929de2de96013ea7143a
parentfc53a09909ae046dbe4d339bffc744cfc328253e
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