[FFmpeg-devel] [PATCH] avcodec/gdv: Check remaining output after decode 5/6/8/

Paul B Mahol onemda at gmail.com
Fri May 31 15:12:10 EEST 2019


On 5/31/19, Michael Niedermayer <michael at niedermayer.cc> wrote:
> On Thu, May 30, 2019 at 11:28:35AM +0200, Paul B Mahol wrote:
>> On 5/29/19, Michael Niedermayer <michael at niedermayer.cc> wrote:
>> > Improves: Timeout (355sec -> 97sec)
>> > Improves:
>> > 14709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5704215281795072
>> >
>> > Found-by: continuous fuzzing process
>> > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
>> > ---
>> >  libavcodec/gdv.c | 7 ++++++-
>> >  1 file changed, 6 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/libavcodec/gdv.c b/libavcodec/gdv.c
>> > index 9cf30c09e4..a5ce6b799e 100644
>> > --- a/libavcodec/gdv.c
>> > +++ b/libavcodec/gdv.c
>> > @@ -308,7 +308,7 @@ static int decompress_5(AVCodecContext *avctx,
>> > unsigned
>> > skip)
>> >              int len;
>> >              int b = bytestream2_get_byte(gb);
>> >              if (b == 0) {
>> > -                break;
>> > +                return 0;
>>
>> Why?
>
> i have no testcase for this path, so i did not route it through the new
> check
> but i surely can treat it the same as others if you want ?
>
> thx

Its fine.

>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> Those who are too smart to engage in politics are punished by being
> governed by those who are dumber. -- Plato
>


More information about the ffmpeg-devel mailing list