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:49:34 +0000 (23:49 +0000)
commit07db7a0dd8239e255c08800162eb45b82c2c49fe
tree008acb26bb810b8bb6e0b63a5e9f80afea44789a
parent2d1309c3528f89bfafe1298badf39fe7a1be0542
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