1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-28 15:19:38 +03:00
Files
ffmpeg/libavformat
bird 120e53d4ee avformat/sctp: add size check in sctp_read() matching sctp_write()
Commit 5b98cea4 added a size < 2 guard to sctp_write() to prevent
out-of-bounds access when max_streams is enabled, but the identical
pattern in sctp_read() was not addressed.

When max_streams is non-zero, sctp_read() passes (buf + 2, size - 2)
to ff_sctp_recvmsg(). If size < 2, size - 2 wraps to a large value
on the implicit cast to size_t in the callee.

Add the same guard.

Signed-off-by: bird <6666242+bird@users.noreply.github.com>
(cherry picked from commit 5c3602abaa)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-06-18 04:03:04 +02:00
..
2024-03-31 00:08:43 +01:00
…
2025-08-08 03:04:42 -07:00
2025-08-03 13:48:47 +02:00
2024-08-28 16:27:54 +02:00
…
2025-08-03 13:48:47 +02:00
2025-06-27 22:32:51 -03:00
2025-04-13 22:49:21 +02:00
2024-09-24 15:37:15 +02:00
2025-04-13 22:49:21 +02:00
…
…
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
…
2024-03-26 06:36:43 +01:00
…
…
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
…
…
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
…
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
…
…
2024-03-11 16:52:42 +01:00
2024-12-02 03:14:47 +01:00
2024-06-19 10:12:50 -03:00
…
…
2025-08-03 13:48:47 +02:00
2026-06-14 04:59:04 +02: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
…
…
…
…
2025-08-03 13:48:47 +02:00
2024-06-04 11:46:27 +02:00
2026-06-14 04:59:01 +02:00
2024-07-21 16:41:23 +02:00
2026-05-03 19:50:04 +02:00
…
…
2025-08-03 13:48:47 +02:00
…
2023-05-31 09:03:58 -07:00
2025-08-03 13:48:47 +02:00
…
…
…
…
2025-08-03 13:48:47 +02:00
2024-04-17 18:31:06 +05:30
2024-05-01 02:57:12 +02: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
2025-08-08 03:04:42 -07:00
2025-08-08 03:04:42 -07:00
2024-03-31 00:08:43 +01:00
…
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-03-28 15:23:28 +01:00
…
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
2026-05-03 19:57:05 +02:00
…
2025-08-03 13:48:47 +02:00
…
2025-07-04 17:07:53 +10:00
2024-03-31 00:08:43 +01:00
2024-11-03 10:53:15 +11: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
2025-07-07 01:45:10 +02:00
…
2026-05-03 19:50:01 +02:00
2025-06-11 19:19:50 +02:00
2025-08-03 13:48:47 +02:00
2024-07-21 17:02:11 +02:00
…
…
…
…
…
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
…
…
2024-03-31 00:08:43 +01:00
2025-06-26 17:35:46 +02:00
2025-08-03 13:48:47 +02:00
…
2024-07-21 17:02:11 +02:00
2026-06-14 04:59:00 +02:00
2025-11-19 00:58:21 +00:00
2025-02-07 10:13:50 -05:00
…
…
…
…
…
2024-03-26 06:36:43 +01:00
2025-08-03 13:48:47 +02:00
…
2025-08-03 13:48:47 +02:00
…
…
2024-03-26 06:36:43 +01:00
2024-07-21 17:02:12 +02:00