avformat/mxfdec: More offset_temp checks
authorMichael Niedermayer <[email protected]>
Thu, 12 Sep 2024 20:29:04 +0000 (22:29 +0200)
committerMichael Niedermayer <[email protected]>
Thu, 27 Feb 2025 16:53:06 +0000 (17:53 +0100)
commit99129350624ef9aaeeb024bbd87f3bc1d75f47aa
tree966a95c4b22ee61f3a574d27980352323aec9cec
parent795cec23b24759c63f413ee6777fe239a89803b2
avformat/mxfdec: More offset_temp checks

Fixes: signed integer overflow: 9223372036854775807 - -1927491430256034080 cannot be represented in type 'long'
Fixes: 70607/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-5282235077951488

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 5a96aa435af0d66bdec52ee115cf4dd971855fcd)
Signed-off-by: Michael Niedermayer <[email protected]>
libavformat/mxfdec.c