[FFmpeg-devel] [PATCH 2/5] avcodec/ituh263dec: Check for the bitstream end in ff_h263_decode_mb()

Paul B Mahol onemda at gmail.com
Sun Feb 26 11:06:18 EET 2017


On 2/25/17, Michael Niedermayer <michael at niedermayer.cc> wrote:
> On Sat, Feb 25, 2017 at 10:03:58PM +0100, Paul B Mahol wrote:
>> On 2/25/17, Michael Niedermayer <michael at niedermayer.cc> wrote:
>> > Fixes invalid shift
>> >
>> > Fixes: 670/clusterfuzz-testcase-4852021066727424
>> >
>> > Found-by: continuous fuzzing process
>> > https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
>> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
>> > ---
>> >  libavcodec/ituh263dec.c | 3 +++
>> >  1 file changed, 3 insertions(+)
>> >
>>
>> How this fixes invalid shift? Someone could manually add bunch of zero
>
> theres a
>
> v >>= 16 - get_bits_left(&s->gb);

ok then


More information about the ffmpeg-devel mailing list