From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options
Date: Fri, 28 Feb 2025 02:23:21 +0100
Message-ID: <20250228012321.GP4991@pb2> (raw)
In-Reply-To: <89d538cab47c517b35ecaccb563e14334c9f9927.1740664900.git.ffmpegagent@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2897 bytes --]
On Thu, Feb 27, 2025 at 02:01:34PM +0000, softworkz wrote:
> From: softworkz <softworkz@hotmail.com>
>
> Signed-off-by: softworkz <softworkz@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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2025-02-28 1:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-27 14:01 [FFmpeg-devel] [PATCH 0/8] [RFC] avtextformat: Transform text writing into an independent API ffmpegagent
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 1/8] ffprobe/avtextformat: Rename and move writer structs softworkz
2025-02-28 1:18 ` Michael Niedermayer
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 2/8] ffprobe/avtextformat: Rename and move writer functions and options softworkz
2025-02-28 1:23 ` Michael Niedermayer [this message]
2025-02-28 1:30 ` Soft Works
2025-02-28 1:47 ` Soft Works
2025-02-28 2:29 ` Michael Niedermayer
2025-02-28 2:43 ` Soft Works
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 3/8] ffprobe/avtextformat: Generalize ffprobe specifics softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 4/8] ffprobe/avtextformat: Rename flags and enums softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 5/8] ffprobe/avtextformat: Move flags softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 6/8] ffprobe/avtextformat: Rename writer to formatter softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 7/8] ffprobe/avtextformat: Move formatters to avutil softworkz
2025-02-27 14:01 ` [FFmpeg-devel] [PATCH 8/8] ffprobe/avtextformat: Split out text writers as independent classes softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 0/8] [RFC] avtextformat: Transform text writing into an independent API ffmpegagent
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 1/8] ffprobe/avtextformat: Rename and move writer structs softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 2/8] ffprobe/avtextformat: Rename and move writer functions and options softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 3/8] ffprobe/avtextformat: Generalize ffprobe specifics softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 4/8] ffprobe/avtextformat: Rename flags and enums softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 5/8] ffprobe/avtextformat: Move flags softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 6/8] ffprobe/avtextformat: Rename writer to formatter softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 7/8] ffprobe/avtextformat: Move formatters to avutil softworkz
2025-02-28 5:02 ` [FFmpeg-devel] [PATCH v2 8/8] ffprobe/avtextformat: Split out text writers as independent classes softworkz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250228012321.GP4991@pb2 \
--to=michael@niedermayer.cc \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git