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

Unified · Split

libavfilter/vf_fieldorder.c+2−2
@@ -108,8 +108,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 107 unmodified lines
108 s->dst_tff ? "up" : "down");108 s->dst_tff ? "up" : "down");
109 h = frame->height;109 h = frame->height;
110 for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++) {110 for (plane = 0; plane < 4 && frame->data[plane] && frame->linesize[plane]; plane++) {
111 dst_line_step = out->linesize[plane];111 dst_line_step = out->linesize[plane] * (h > 2);
112 src_line_step = frame->linesize[plane];112 src_line_step = frame->linesize[plane] * (h > 2);
113 line_size = s->line_size[plane];113 line_size = s->line_size[plane];
114 dst = out->data[plane];114 dst = out->data[plane];
115 src = frame->data[plane];115 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