On Wed, Sep 2, 2015 at 2:27 PM, Alexandra Hájková <[email protected]> wrote: > --- > annotation: fixes Invalid write in the sample sent by Andreas > > libavformat/asfdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c > index 4b04227..1790096 100644 > --- a/libavformat/asfdec.c > +++ b/libavformat/asfdec.c > @@ -583,7 +583,7 @@ static int asf_read_metadata_obj(AVFormatContext *s, > const GUIDParseTable *g) > break; > type = avio_rl16(pb); > val_len = avio_rl32(pb); > - name = av_malloc(name_len); > + name = av_malloc(buflen); > if (!name) > return AVERROR(ENOMEM); > avio_get_str16le(pb, name_len, name, > --
Seems ok. Does this fix *all* the bugs (not) reported? -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
