lör 2022-06-18 klockan 17:00 +0200 skrev Anton Khirnov:
> Quoting Tomas Härdin (2022-06-14 16:43:38)
> > 
> > +    if (w <= 4 && h <= 4) {
> > +        int idx = w-1 + (h-1)*4;
> > +        size_t sz = tt_sizes[idx];
> > +        av_fast_malloc(old, size, sz);
> 
> Unchecked mallocs are of the beast.

Right, it should return AVERROR(ENOMEM) if !*old. Will be fixed in the
updated patchset

/Tomas

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to