Browse Source

avfilter/vf_scale_npp: fix out-of-bounds reads

Fixes CIDs 1396414 and 1396415
tags/n3.4
Timo Rothenpieler 8 years ago
parent
commit
0fbc9bbbbb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_scale_npp.c

+ 1
- 1
libavfilter/vf_scale_npp.c View File

@@ -400,7 +400,7 @@ static int nppscale_resize(AVFilterContext *ctx, NPPScaleStageContext *stage,
NppStatus err;
int i;

for (i = 0; i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {
for (i = 0; i < FF_ARRAY_ELEMS(stage->planes_in) && i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {
int iw = stage->planes_in[i].width;
int ih = stage->planes_in[i].height;
int ow = stage->planes_out[i].width;


Loading…
Cancel
Save