ffmpeg/libavcodec
Michael Niedermayer 70522b7262 avcodec/exr: Avoid signed overflow in displayWindow
The inputs are unused except for this computation so wraparound
does not give an attacker any extra values as they are already fully
controlled

Fixes: signed integer overflow: 0 - -2147483648 cannot be represented in type 'int'
Fixes: 45820/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5766159019933696

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1291568c9834c02413ab5d87762308f15b4ae9c6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-04-04 00:05:36 +02:00
..
2021-10-03 11:42:15 +02:00
2022-03-28 23:18:56 +02:00
2021-10-08 20:37:36 +11:00
2021-10-08 20:37:36 +11:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2021-09-29 18:00:13 +08:00
2021-10-09 11:42:16 +02:00
2022-01-04 12:08:18 +01:00
2022-01-04 12:08:18 +01:00
2021-12-03 16:09:14 +01:00
2021-12-03 16:09:14 +01:00
2022-03-28 23:18:56 +02:00
2021-10-02 18:49:40 +02:00
2021-10-10 17:44:41 +02:00