[FFmpeg-devel] [PATCH v5] fftools/cmdutils: Avoid crash when opts could not be allocated

2021-12-14 Thread Yu Yang
From: Yu Yang If 'opts' could not be allocated, exiting the program to avoid crash when release it. Reported-by: TOTE Robot Signed-off-by: Yu Yang --- fftools/cmdutils.c | 2 +- fftools/cmdutils.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fftools/cm

[FFmpeg-devel] [PATCH] libavcodec/pthread_framec: remove duplicate pointers

2021-12-14 Thread Yu Yang
From: Yu Yang '*src' and '*avctx' point to the same memory. It is enough to keep one of them. Signed-off-by: Yu Yang --- libavcodec/pthread_frame.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/libavcodec/pthread_frame.c b/libavcodec/p

[FFmpeg-devel] [PATCH v2] libswresample/swresamplec: Err num(negative-size) was used as a function parameter

2021-12-07 Thread Yu Yang
2dee0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16 SUMMARY: AddressSanitizer: negative-size-param (/home/r1/ffmpeg/ffmpeg_4.4.1+0x497e67) in __asan_memcpy Reported-by: TOTE Robot Signed-off-by: Yu Yang --- libswresample/swresample.c | 8 +--- 1 file

[FFmpeg-devel] [PATCH v4] fftools/opts: Avoid crash when opts could not be allocated

2021-12-07 Thread Yu Yang
If 'opts' could not be allocated, exiting the program to avoid crash when release it. Before setup_find_stream_info_opts(), checking 'orig_nb_streams' is > 0. Reported-by: TOTE Robot Signed-off-by: Yu Yang --- fftools/cmdutils.c | 4 +--- fftools/cmdutils.h | 4 ++-

[FFmpeg-devel] [PATCH v3] fftools/opts: Avoid crash when opts could not be allocated

2021-12-07 Thread Yu Yang
execute avformat_find_stream_info(). Reported-by: TOTE Robot Signed-off-by: Yu Yang --- fftools/cmdutils.c | 5 ++--- fftools/ffmpeg_opt.c | 20 ++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 3c8e5a82cd..

[FFmpeg-devel] [PATCH] libswresample/swresamplec: Err num(negative-size) was used as a function parameter

2021-12-06 Thread Yu Yang
2dee0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16 SUMMARY: AddressSanitizer: negative-size-param (/home/r1/ffmpeg/ffmpeg_4.4.1+0x497e67) in __asan_memcpy Reported-by: TOTE Robot Signed-off-by: Yu Yang --- libswresample/swresample.c | 6 +- 1 file

[FFmpeg-devel] [PATCH v2] fftools/cmdutils: Avoid crash when opts is empty

2021-12-04 Thread Yu Yang
-start.c:308:16 #6 0x42033d in _start (/home/r1/ffmpeg/ffmpeg_4.4.1+0x42033d) Reported-by: TOTE Robot Signed-off-by: Yu Yang --- fftools/cmdutils.c | 6 -- libavformat/demux.c | 12 +--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fftools/cmdutils.c b/fftools

[FFmpeg-devel] [PATCH] Exception when frame is set NULL

2021-12-03 Thread Yu Yang
/libc-start.c:308:16 #7 0x42033d in _start (/home/r1/ffmpeg/ffmpeg_4.4.1+0x42033d) Reported-by: TOTE Robot Signed-off-by: Yu Yang --- fftools/ffmpeg.c | 7 --- libavutil/frame.c | 9 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c i

[FFmpeg-devel] [PATCH] libavcodec/avpacketc packet release exception

2021-12-03 Thread Yu Yang
ftools/ffmpeg.c:4988:11 #7 0x7f122a83d0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16 #8 0x42033d in _start (/home/r1/ffmpeg/ffmpeg_4.4.1+0x42033d) Reported-by: TOTE Robot Signed-off-by: Yu Yang --- libavcodec/avpacket.c | 9 - 1 file change

[FFmpeg-devel] fftools/ffmpeg_optc AVDictionary **opts, If memory allocation fails,

2021-12-03 Thread Yu Yang
e35197f0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16 #6 0x42033d in _start (/home/r1/ffmpeg/ffmpeg_4.4.1+0x42033d) Reported-by: TOTE Robot Signed-off-by: Yu Yang --- fftools/ffmpeg_opt.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)