1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
FFmpeg/fftools
Andreas Rheinhardt 1faafe738d fftools/ffmpeg_opt: Check before accessing union member
OptionDef.u is only an offset (i.e. its off member) iff OPT_FLAG_OFFSET
is true. Otherwise, the pointer arithmetic can be undefined behaviour.
UBSan warns about this (on 32bit arches):
src/fftools/ffmpeg_opt.c:102:15: runtime error: pointer index expression with base 0xffa4db10 overflowed to 0x56059a50

This commit fixes this by checking for OPT_FLAG_OFFSET first.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-03-17 15:10:05 +01:00
..
cmdutils.c fftools/ffmpeg: add loopback decoding 2024-03-13 08:01:27 +01:00
cmdutils.h fftools/ffmpeg: add loopback decoding 2024-03-13 08:01:27 +01:00
ffmpeg_dec.c fftools/ffmpeg: add loopback decoding 2024-03-13 08:01:27 +01:00
ffmpeg_demux.c fftools/ffmpeg: remove unncessary casts for *_thread() return values 2024-03-13 08:01:15 +01:00
ffmpeg_enc.c fftools/ffmpeg_enc: set AV_PKT_FLAG_TRUSTED on encoded packets 2024-03-13 08:01:28 +01:00
ffmpeg_filter.c fftools/ffmpeg: add loopback decoding 2024-03-13 08:01: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 avutil: remove deprecated FF_API_OLD_CHANNEL_LAYOUT 2024-03-07 08:53:30 -03:00
ffmpeg_mux.c fftools/ffmpeg_enc: set AV_PKT_FLAG_TRUSTED on encoded packets 2024-03-13 08:01:28 +01:00
ffmpeg_mux.h fftools/ffmpeg: cosmetics, vertically align structs 2024-02-21 10:33:20 +01:00
ffmpeg_opt.c fftools/ffmpeg_opt: Check before accessing union member 2024-03-17 15:10:05 +01:00
ffmpeg_sched.c fftools/ffmpeg_sched: Remove set-but-unused variable 2024-03-14 22:53:45 +01:00
ffmpeg_sched.h fftools/ffmpeg_sched: allow connecting encoder output to decoders 2024-03-13 08:01:15 +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: add loopback decoding 2024-03-13 08:01:27 +01:00
ffmpeg.h fftools/ffmpeg: add loopback decoding 2024-03-13 08:01:27 +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: stop printing non-public AVCodecContext fields 2024-03-04 15:56:48 +01:00
ffprobe.c fftools/ffprobe: export IAMF Stream Group parameters 2024-03-13 16:45:15 -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 fftools/opt_common: show if muxer is device 2024-03-11 16:52:42 +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/ffmpeg_demux, sync_queue: Constify a bit 2024-03-02 02:51:59 +01: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