mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-08 19:00:07 +00:00
avcodec/utils: the IFF_ILBM implementation assumes that there are a multiple of 16 allocated
Fixes: out of array access
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5124452659888128
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-6362836707442688
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 34056a94ea)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6d0161f742
commit
8b43d791be
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
|
|||
}
|
||||
|
||||
if (s->codec_id == AV_CODEC_ID_IFF_ILBM) {
|
||||
w_align = FFMAX(w_align, 8);
|
||||
w_align = FFMAX(w_align, 16);
|
||||
}
|
||||
|
||||
*width = FFALIGN(*width, w_align);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue