1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-28 15:19:38 +03:00
Files
ffmpeg/libavformat
Jun Zhao d389e2f3e5 avformat/vpk: Check the channel count before dividing in the last block
vpk_read_packet() divides last_block_size and block_align by
codecpar->ch_layout.nb_channels when assembling the last interleaved
block. Header parsing already rejects a non-positive channel count,
but a failed avcodec_open2() can later zero the layout through
ff_codec_close() -> av_opt_free(), so the division is reached with a
zero divisor.

Check the channel count again before dividing and return
AVERROR_INVALIDDATA.

Original-patch-by: Kacper Michajłow <kasper93@gmail.com>
Fixes: #24290
Reported-by: Darío Clavijo
Found-by: OSS-Fuzz
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
(cherry picked from commit 780f6efbcf)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-09-17 01:30:40 +02:00
..
…
2025-08-03 13:48:47 +02:00
2026-03-10 13:52:18 +01:00
…
2025-09-08 20:59:31 +00:00
2025-04-13 22:49:21 +02:00
…
…
2026-06-23 19:15:57 +02:00
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
…
2026-03-10 13:52:18 +01:00
2024-03-26 06:36:43 +01:00
…
…
2026-06-23 19:15:57 +02:00
2026-03-10 13:52:18 +01:00
2026-06-23 19:15:57 +02:00
…
…
2026-05-08 09:34:52 +02:00
2026-06-23 19:15:57 +02:00
2025-08-03 13:48:47 +02:00
…
2026-02-19 17:18:11 +01:00
2026-03-10 13:52:18 +01:00
2026-03-10 13:52:18 +01:00
2026-06-23 19:15:57 +02:00
…
…
2024-06-19 10:12:50 -03:00
…
2026-06-23 19:15:57 +02:00
…
2026-05-29 01:49:20 +00:00
2024-03-26 06:36:43 +01:00
2025-08-03 13:48:47 +02:00
2025-06-23 17:19:18 +10:00
2026-08-12 04:52:00 +02:00
…
…
…
…
2026-02-25 02:55:43 +00:00
2025-08-03 13:48:47 +02:00
2024-06-04 11:46:27 +02:00
2024-07-21 16:41:23 +02:00
2026-02-18 08:20:10 +00:00
…
…
…
2023-05-31 09:03:58 -07:00
…
…
…
…
2025-08-03 13:48:47 +02:00
2026-06-16 09:18:24 -03:00
2024-04-17 18:31:06 +05:30
2024-05-01 02:57:12 +02:00
2026-03-10 13:52:18 +01:00
2025-08-03 13:48:47 +02:00
2024-04-06 12:59:56 +02:00
…
2025-08-04 03:59:42 +00:00
2025-08-03 13:48:47 +02:00
2026-04-28 12:29:37 +00:00
2024-03-31 00:08:43 +01:00
…
2026-03-10 13:52:18 +01:00
2026-06-23 19:15:57 +02:00
2025-03-28 15:23:28 +01:00
…
2026-05-23 10:16:38 -05:00
2026-05-23 10:16:38 -05:00
2026-05-22 08:20:13 -05:00
2024-03-31 00:08:43 +01:00
2026-05-03 13:26:34 +00:00
…
2025-08-03 13:48:47 +02:00
…
2026-06-23 19:13:06 +02:00
2024-11-03 10:53:15 +11:00
2026-05-03 18:22:46 +02:00
2026-03-10 13:52:18 +01:00
…
…
…
…
…
…
2025-06-23 17:19:18 +10:00
…
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
…
2026-08-12 04:51:58 +02:00
2026-03-10 13:52:18 +01:00
…
…
…
…
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
2026-03-10 13:52:18 +01:00
2026-06-23 19:15:57 +02:00
…
…
2026-03-10 13:52:18 +01:00
…
2024-07-21 17:02:11 +02:00
…
2026-08-12 05:22:39 +02:00
…
…
…
…
2024-03-26 06:36:43 +01:00
2026-02-25 02:55:43 +00:00
2026-03-10 13:52:18 +01:00
…
2025-08-03 13:48:47 +02:00
…
…
2024-03-26 06:36:43 +01:00