diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-22 23:08:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-09-10 16:04:26 +0200 |
commit | 68dd210aab49adc70781965c6741ff8648a37980 (patch) | |
tree | 8238c03dd11995892e1abe0e24bf3cffce0c5fc3 /libavcodec/sonic.c | |
parent | f226e4b469699cf6acc7d014c9ad4d3b1c45a638 (diff) | |
download | ffmpeg-68dd210aab49adc70781965c6741ff8648a37980.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/sonic.c')
0 files changed, 0 insertions, 0 deletions