[FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options
Michael Niedermayer
michael at niedermayer.cc
Fri Feb 28 03:23:21 EET 2025
On Thu, Feb 27, 2025 at 02:01:34PM +0000, softworkz wrote:
> From: softworkz <softworkz at hotmail.com>
>
> Signed-off-by: softworkz <softworkz at hotmail.com>
> ---
> fftools/ffprobe.c | 910 ++++++----------------------
> libavutil/Makefile | 1 +
> libavutil/avtextformat.h | 50 ++
> libavutil/textformat/avtextformat.c | 620 +++++++++++++++++++
> 4 files changed, 848 insertions(+), 733 deletions(-)
> create mode 100644 libavutil/textformat/avtextformat.c
this and patch 1 crash
==1574970== Invalid read of size 1
==1574970== at 0x483EF46: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1574970== by 0x7683D14: __vfprintf_internal (vfprintf-internal.c:1688)
==1574970== by 0x7696F99: __vsnprintf_internal (vsnprintf.c:114)
==1574970== by 0x1239AA1: av_vbprintf (in ffmpeg/ffprobe_g)
==1574970== by 0x1256473: av_log_default_callback (in ffmpeg/ffprobe_g)
==1574970== by 0x1256162: av_log (in ffmpeg/ffprobe_g)
==1574970== by 0x125CB4B: av_opt_set_defaults2 (in ffmpeg/ffprobe_g)
==1574970== by 0x127611C: avtext_context_open (in ffmpeg/ffprobe_g)
==1574970== by 0x2F9672: main (in ffmpeg/ffprobe_g)
==1574970== Address 0xffffffff is not stack'd, malloc'd or (recently) free'd
==1574970==
==1574970==
==1574970== Process terminating with default action of signal 11 (SIGSEGV)
==1574970== Access not within mapped region at address 0xFFFFFFFF
==1574970== at 0x483EF46: strlen (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==1574970== by 0x7683D14: __vfprintf_internal (vfprintf-internal.c:1688)
==1574970== by 0x7696F99: __vsnprintf_internal (vsnprintf.c:114)
==1574970== by 0x1239AA1: av_vbprintf (in ffmpeg/ffprobe_g)
==1574970== by 0x1256473: av_log_default_callback (in ffmpeg/ffprobe_g)
==1574970== by 0x1256162: av_log (in ffmpeg/ffprobe_g)
==1574970== by 0x125CB4B: av_opt_set_defaults2 (in ffmpeg/ffprobe_g)
==1574970== by 0x127611C: avtext_context_open (in ffmpeg/ffprobe_g)
==1574970== by 0x2F9672: main (in ffmpeg/ffprobe_g)
==1574970== If you believe this happened as a result of a stack
==1574970== overflow in your program's main thread (unlikely but
==1574970== possible), you can try to increase the size of the
==1574970== main thread stack using the --main-stacksize= flag.
==1574970== The main thread stack size used in this run was 8388608.
testcase: ./ffprobe_g -v 99 ~/tickets/3679/wgetmjpegdump
tell me if this file is not in the ticket and ill send it to you
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250228/79c409cb/attachment.sig>
More information about the ffmpeg-devel
mailing list