h264_cabac: Break infinite loops
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Jan 2013 03:20:24 +0000 (04:20 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 22 Feb 2015 23:55:53 +0000 (23:55 +0000)
commit91ef250713d04d675a16e5b030d7226baafe3f82
tree2fb02af3329b5cea5d785a0f4f45a376a7fff5f2
parent3670942fae7beb2bfde52557ee95eab5f536e624
h264_cabac: Break infinite loops

This fixes out of array reads and/or infinite loops.

30 is the maximum number of bits that can be read into
coeff_abs below.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264_cabac.c