h264: prevent theoretical infinite loop in SEI parsing
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 30 Jul 2014 18:33:36 +0000 (19:33 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 1 Aug 2014 12:15:07 +0000 (13:15 +0100)
commit2273e5ed992661e0c4b37208e792e2253d5a0b5b
tree52b1d26b43768f1d08dd8a3e2f171b0c76cfd877
parenta1f7844a11010d8552c75424d1a831b37a0ae5d9
h264: prevent theoretical infinite loop in SEI parsing

Properly address CVE-2011-3946 and parse bitstream as described in the spec.

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