FFmpeg/libavcodec
Michael Niedermayer 15006f48cd 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-06 20:27:35 +02:00
..
2021-02-27 17:09:44 +01:00
2021-06-18 20:53:56 +02:00
2021-03-05 19:45:00 +02:00
2022-04-06 20:27:35 +02:00
2021-03-09 13:41:22 +01:00
2021-02-27 17:09:44 +01:00
2021-03-01 06:10:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-02-09 15:01:34 +01:00
2021-03-09 13:41:22 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-03-01 06:10:44 +01:00
2022-04-06 20:27:35 +02:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2021-02-02 14:29:33 +01:00
2021-04-03 13:29:30 +02:00
2021-04-01 11:38:44 +02:00
2021-10-05 23:19:39 +02:00
2021-03-05 19:45:00 +02:00
2021-04-02 21:40:54 +02:00
2021-03-09 13:41:22 +01:00
2021-01-25 00:18:47 +01:00
2021-09-21 23:20:29 -03:00