h264: stricter reference limit enforcement.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 13 Mar 2012 23:26:44 +0000 (16:26 -0700)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Apr 2012 16:33:29 +0000 (18:33 +0200)
commit8b819fd9d3f363483559a3e9aeb8b78acba47bb7
treecf8363da5d0e3b4c5bc40c2f1491c4773dbbebda
parent81c5b4ddcb08d65b691e944d8d8cdc144c19dc9b
h264: stricter reference limit enforcement.

Progressive images can have only 16 references, error out if there are
more, since the data is almost certainly corrupt, and the invalid value
will lead to random crashes or invalid writes later on.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit e0febda22d0e0fab094a9c886b0e0f0f662df1ef)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/h264.c