Re: [libav-devel] [PATCH 4/4] h264_cavlc: check the value of run_before

2017-01-03 Thread Vittorio Giovara
On Wed, Dec 28, 2016 at 1:15 PM, Anton Khirnov wrote: > Section 9.2.3.2 of the spec implies that run_before must not be larger > than zeros_left. > > Fixes invalid reads with corrupted files. > > CC: libav-sta...@libav.org > Bug-Id: 1000 > Found-By: Kamil Frankowicz > --- > libavcodec/h264_cavlc.

[libav-devel] [PATCH 4/4] h264_cavlc: check the value of run_before

2016-12-28 Thread Anton Khirnov
Section 9.2.3.2 of the spec implies that run_before must not be larger than zeros_left. Fixes invalid reads with corrupted files. CC: libav-sta...@libav.org Bug-Id: 1000 Found-By: Kamil Frankowicz --- libavcodec/h264_cavlc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --g