1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/fftools
Andreas Rheinhardt 44620ade25 fftools/ffmpeg_mux_init: Fix attachment_filename use-after-free
The filename is freed with the OptionsContext and therefore
there will be a use-after-free when reporting the filename
in print_stream_maps(). So create a copy of the string.

This is a regression since 8aed3911fc.
fate-lavf-mkv_attachment exhibits it (and reports a random nonsense
filename here), but this does not make the test fail (not even with
valgrind; only with ASAN, as it aborts on use-after-free).

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-02-18 18:09:33 +01:00
..
cmdutils.c fftools/cmdutils: Don't cast const away 2024-02-09 12:22:21 +01:00
cmdutils.h fftools/cmdutils: drop alt_flags parameter from show_help_options() 2024-01-20 10:37:32 +01:00
ffmpeg_dec.c fftools/ffmpeg_dec: eliminate all remaining InputStream uses 2024-01-30 09:52:00 +01:00
ffmpeg_demux.c fftools/ffmpeg_demux: set stream index right before sending packet to scheduler 2024-02-09 16:14:24 +01:00
ffmpeg_enc.c fftools/ffmpeg: use correct unit prefix symbol for binary scaled byte values 2024-02-03 12:50:42 +01:00
ffmpeg_filter.c fftools/ffmpeg_filter: simplify buffersrc arg printing 2024-02-02 13:24:27 +01:00
ffmpeg_hw.c fftools/ffmpeg: move hwaccel_retrieve_data() from ffmpeg_hw to ffmpeg_dec 2024-01-30 09:52:00 +01:00
ffmpeg_mux_init.c fftools/ffmpeg_mux_init: Fix attachment_filename use-after-free 2024-02-18 18:09:33 +01:00
ffmpeg_mux.c fftools/ffmpeg_mux_init: Fix attachment_filename use-after-free 2024-02-18 18:09:33 +01:00
ffmpeg_mux.h fftools/ffmpeg: optimize inter-thread queue sizes 2024-01-28 13:34:56 +01:00
ffmpeg_opt.c fftools/ffmpeg: optimize inter-thread queue sizes 2024-01-28 13:34:56 +01:00
ffmpeg_sched.c fftools/ffmpeg: optimize inter-thread queue sizes 2024-01-28 13:34:56 +01:00
ffmpeg_sched.h fftools/ffmpeg: optimize inter-thread queue sizes 2024-01-28 13:34:56 +01:00
ffmpeg_utils.h fftools/ffmpeg: rework keeping track of file duration for -stream_loop 2023-11-14 18:18:26 +01:00
ffmpeg.c fftools/ffmpeg: use correct unit prefix symbol for binary scaled byte values 2024-02-03 12:50:42 +01:00
ffmpeg.h fftools/ffmpeg_mux_init: Fix attachment_filename use-after-free 2024-02-18 18:09:33 +01:00
ffplay_renderer.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
ffplay_renderer.h fftools/ffplay: add hwaccel decoding support 2023-11-15 01:20:11 +08:00
ffplay.c fftools/ffplay: constrain supported YUV color spaces 2024-02-09 21:02:08 +01:00
ffprobe.c avcodec: add ambient viewing environment packet side data. 2024-02-04 13:36:21 -03:00
fftools.manifest fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fftoolsres.rc fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fopen_utf8.h fftools/fopen_utf8: support long paths on Windows for fftools 2022-06-19 01:38:23 +03:00
Makefile fftools/ffmpeg: add thread-aware transcode scheduling infrastructure 2023-12-12 08:24:18 +01:00
objpool.c fftools/objpool: Don't use return with expression when returning void 2022-07-23 18:58:35 +02:00
objpool.h fftools: add an object pool 2022-07-23 11:53:19 +02:00
opt_common.c Revert "all: Don't set AVClass.item_name to its default value" 2024-01-20 10:34:48 +01:00
opt_common.h fftools/cmdutils: hide some information listing options from basic help 2024-01-20 10:37:32 +01:00
sync_queue.c fftools/sync_queue: make sure non-limiting streams are not used as queue head 2023-05-28 10:47:59 +02:00
sync_queue.h fftools/sync_queue: add debug logging 2023-05-28 10:47:59 +02:00
thread_queue.c fftools/thread_queue: count receive-finished streams as finished 2023-11-14 18:18:26 +01:00
thread_queue.h fftools: add a multistream thread-safe queue 2022-07-23 11:53:19 +02:00