History

avformat/iamf_parse: Check output_channel_count

Fixes: -nan is outside the range of representable values of type 'int' Fixes: 377072730/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-6545416570601472

Michael Niedermayer committed 1 year ago

Commit 4485a0f1 parent 70514ff1 file · +1 −1Browse files

Unified · Split

libavformat/iamf_parse.c+1−1
@@ -422,7 +422,7 @@ static int ambisonics_config(void *s, AVIOContext *pb, · 421 unmodified lines
422 422
423 output_channel_count = avio_r8(pb); // C423 output_channel_count = avio_r8(pb); // C
424 substream_count = avio_r8(pb); // N424 substream_count = avio_r8(pb); // N
425 if (audio_element->nb_substreams != substream_count)425 if (audio_element->nb_substreams != substream_count || output_channel_count == 0)
426 return AVERROR_INVALIDDATA;426 return AVERROR_INVALIDDATA;
427 427
428 order = floor(sqrt(output_channel_count - 1));428 order = floor(sqrt(output_channel_count - 1));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t