diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-02-19 21:16:25 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-02-20 14:16:00 +0100 |
commit | 89fe1935b18621af06587c76bcde6adcdc8f2249 (patch) | |
tree | be17167a95a13a55e3cdfa2448b339e39d3ad838 /libavcodec/hap.h | |
parent | 029e3c1c70b31ede9f17dda4b3a4fc8e35cada70 (diff) | |
download | ffmpeg-89fe1935b18621af06587c76bcde6adcdc8f2249.tar.gz |
avcodec/hapdec: Change compressed_offset to unsigned 32bit
Fixes: out of array access
Fixes: 29345/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HAP_fuzzer-5401813482340352
Fixes: 30745/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HAP_fuzzer-5762798221131776
Suggested-by: Anton
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>
Diffstat (limited to 'libavcodec/hap.h')
-rw-r--r-- | libavcodec/hap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hap.h b/libavcodec/hap.h index bbeed11e32..00c3dbb32d 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -52,7 +52,7 @@ enum HapSectionType { typedef struct HapChunk { enum HapCompressor compressor; - int compressed_offset; + uint32_t compressed_offset; size_t compressed_size; int uncompressed_offset; size_t uncompressed_size; |