History

avfilter/vf_avgblur: Check plane instead of AVFrame

Fixes: CID1551694 Use after free (false positive based on assuming that out == in and one is freed and one used)

Michael Niedermayer committed 2 years ago

Commit c296d4f1 parent 34f821e1 file · +1 −1Browse files

Unified · Split

libavfilter/vf_avgblur.c+1−1
@@ -288,7 +288,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 287 unmodified lines
288288 const int width = s->planewidth[plane];
289289
290290 if (!(s->planes & (1 << plane))) {
291− if (out != in)
291+ if (out->data[plane] != in->data[plane])
292292 av_image_copy_plane(out->data[plane], out->linesize[plane],
293293 in->data[plane], in->linesize[plane],
294294 width * ((s->depth + 7) / 8), height);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t