avformat/wtvdec: Check size in SBE2_STREAM_DESC_EVENT / stream2_guid
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 3 Mar 2021 23:30:45 +0000 (00:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Apr 2021 09:38:44 +0000 (11:38 +0200)
commit9179ab9227d63b9fe5be06940be11672aec17517
tree7c804594b7e83e28d792618286b6b3870887d45e
parent6ef700dfb0de010b487317978877efb22b4e46f1
avformat/wtvdec: Check size in SBE2_STREAM_DESC_EVENT / stream2_guid

Fixes: signed integer overflow: 539033600 - -1910497124 cannot be represented in type 'int'
Fixes: 30928/clusterfuzz-testcase-minimized-ffmpeg_dem_WTV_fuzzer-5922630966312960

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 1f74661543c0c336e88846f90608fda7bd12deac)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/wtvdec.c