avcodec/utils: ARGO writes 4x4 blocks without regard to the image dimensions
Fixes: out of array access Fixes: 37197/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ARGO_fuzzer-5877046382297088 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
32329397e2
commit
018b611b4b
@ -298,6 +298,12 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
|
||||
h_align = 4;
|
||||
}
|
||||
break;
|
||||
case AV_PIX_FMT_BGR0:
|
||||
if (s->codec_id == AV_CODEC_ID_ARGO) {
|
||||
w_align = 4;
|
||||
h_align = 4;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user