History

avfilter/vf_fieldorder: fix heap-buffer overflow

Fixes #8264

Paul B Mahol committed 7 years ago

Commit 07050d71 parent 99f8d321 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_fieldorder.c+2−2
@@ -108,8 +108,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 107 unmodified lines
108108 s->dst_tff ? "up" : "down");
109109 h = frame->height;
110110 for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++) {
111− dst_line_step = out->linesize[plane];
112− src_line_step = frame->linesize[plane];
111+ dst_line_step = out->linesize[plane] * (h > 2);
112+ src_line_step = frame->linesize[plane] * (h > 2);
113113 line_size = s->line_size[plane];
114114 dst = out->data[plane];
115115 src = frame->data[plane];

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