FFmpeg/libavformat
Michael Niedermayer cbbe688434
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 14:42:11 +02:00
..
2023-01-27 19:45:36 +01:00
2022-12-01 11:21:15 +01:00
2022-02-24 12:56:49 +01:00
2024-03-26 06:36:43 +01:00
2022-02-24 12:56:49 +01:00
2024-03-11 16:52:42 +01:00
2023-06-27 12:52:38 -03:00
2022-03-16 14:05:26 +02:00
2024-03-26 06:36:43 +01:00
2024-03-17 15:10:05 +01:00
2024-03-26 00:08:25 +01:00
2023-05-31 09:03:58 -07:00
2022-02-24 12:56:49 +01:00
2024-03-22 23:57:19 +01:00
2023-09-28 19:37:58 +02:00
2022-03-15 09:42:35 -03:00
2023-11-08 17:37:58 +11:00
2022-03-15 09:42:36 -03:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2022-03-26 00:42:00 +02:00
2024-03-15 12:51:15 +01:00
2022-08-31 16:24:22 +02:00
2024-03-27 01:04:53 +01:00
2024-03-26 06:36:43 +01:00
2024-03-26 06:36:43 +01:00