[FFmpeg-devel] [PATCH] ffprobe: fix crash in case -of is specified with an empty string

Stefano Sabatini stefasab at gmail.com
Thu Nov 17 21:46:05 EET 2016


On date Thursday 2016-11-17 19:57:13 +0100, Andreas Cadhalpun encoded:
> On 17.11.2016 12:12, Stefano Sabatini wrote:
> > Fix trac issue #5957.
> > ---
> >  ffprobe.c | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/ffprobe.c b/ffprobe.c
> > index a2980b3..79fe296 100644
> > --- a/ffprobe.c
> > +++ b/ffprobe.c
> > @@ -3311,6 +3311,12 @@ int main(int argc, char **argv)
> >          goto end;
> >      }
> >      w_name = av_strtok(print_format, "=", &buf);
> > +    if (!w_name) {
> > +        av_log(NULL, AV_LOG_ERROR,
> > +               "No name specified for the output format\n");
> > +        ret = AVERROR(EINVAL);
> > +        goto end;
> > +    }
> >      w_args = buf;
> >  
> >      if (show_data_hash) {
> > 
> 
> LGTM.

Applied, thanks.
-- 
FFmpeg = Fierce & Freak Mystic Political Ephemeral Guru


More information about the ffmpeg-devel mailing list