aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/golomb.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-10-22 23:08:13 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-11 21:23:48 +0200
commitf7fe3969ef943bb375ac1b16e4fd5915e4096cf3 (patch)
tree4206466d0b8964f3ec998b4294ab7598596bc69b /libavcodec/golomb.c
parent3293cf065ec926fcd00c705b96e6f9537b3f3425 (diff)
downloadffmpeg-f7fe3969ef943bb375ac1b16e4fd5915e4096cf3.tar.gz
avformat/cafdec: Check that bytes_per_packet and frames_per_packet are non negative
These fields are not signed in the spec (1.0) so they cannot be negative Changing bytes_per_packet to unsigned would not solve this as it is exported as block_align which is signed Fixes: Infinite loop Fixes: 26492/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-5632087614554112 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 5eed718087f2ba307a3d1d294016d2ebae9230f3) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/golomb.c')
0 files changed, 0 insertions, 0 deletions