ffmpeg/libavformat
Michael Niedermayer 808ec6ccfa
avformat/mpegts: Reset local nb_prg on add_program() failure
add_program() will deallocate the whole array on failure so
we must clear nb_prgs

Fixes: null pointer dereference
Fixes: crash-35a3b39ddcc5babeeb005b7399a3a1217c8781bc

Found-by: Catena cyber
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cb9752d897de17212a7a3ce54ad3e16b377b22c0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-04-03 02:04:51 +02:00
..
2022-03-15 09:42:29 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:29 -03:00
2022-03-15 09:42:29 -03:00
2022-03-15 09:42:30 -03:00
2022-03-15 09:42:30 -03:00
2022-03-27 11:58:54 +02:00
2022-09-24 22:58:19 +02:00
2022-02-24 12:56:49 +01:00
2022-06-13 22:42:55 +02:00
2022-06-13 22:42:55 +02:00
2023-10-30 00:39:01 +01:00
2022-06-09 20:46:10 +02:00
2022-03-15 09:42:31 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:31 -03:00
2022-02-24 12:56:49 +01:00
2022-03-15 09:42:31 -03:00
2022-09-24 22:58:20 +02:00
2022-03-15 09:42:31 -03:00
2022-03-15 09:42:31 -03:00
2022-06-09 13:03:55 +03:00
2022-03-16 14:05:26 +02:00
2022-03-15 09:42:32 -03:00
2022-07-09 20:16:39 +02:00
2022-03-16 14:05:26 +02:00
2022-03-15 09:42:32 -03:00
2022-03-15 09:42:32 -03:00
2022-03-15 09:42:33 -03:00
2022-03-15 09:42:33 -03:00
2022-03-15 09:42:33 -03:00
2022-03-15 09:42:33 -03:00
2022-06-24 23:07:33 -03:00
2022-09-24 22:58:18 +02:00
2022-05-10 07:37:38 +02:00
2024-04-03 02:04:44 +02:00
2022-03-15 09:42:33 -03:00
2022-07-03 15:16:31 +02:00
2022-07-03 15:16:31 +02:00
2022-03-15 09:42:33 -03:00
2022-02-24 12:56:49 +01:00
2022-07-09 19:03:28 +02:00
2022-03-15 09:42:33 -03:00
2022-05-06 15:57:45 +02:00
2022-07-03 15:16:31 +02:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:34 -03:00
2022-05-10 07:37:38 +02:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-09-24 22:58:21 +02:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:35 -03:00
2022-03-15 09:42:36 -03:00
2022-03-15 09:42:36 -03:00
2022-03-15 09:42:36 -03:00
2022-09-24 22:58:22 +02:00
2022-03-15 09:42:36 -03:00
2022-03-15 09:42:36 -03:00
2022-03-26 00:42:00 +02:00
2022-03-15 09:42:37 -03:00
2022-07-07 21:52:52 +02:00
2022-03-15 09:42:37 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:37 -03:00
2022-03-15 09:42:38 -03:00
2023-10-30 00:39:13 +01:00
2023-10-30 00:39:11 +01:00
2022-02-12 08:41:55 +08:00
2022-02-24 12:56:49 +01:00
2022-03-15 09:42:38 -03:00
2022-03-16 14:05:26 +02:00
2022-07-13 00:27:37 +02:00
2023-02-11 11:51:11 +01:00
2022-03-15 09:42:38 -03:00
2022-05-10 07:37:38 +02:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:38 -03:00
2022-03-15 09:42:39 -03:00
2022-03-15 09:42:39 -03:00