From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 1/1] [ffmpeg-deve] avcodec/mpegaudiodec optimizing code size
Date: Wed, 21 May 2025 09:40:57 +0200
Message-ID: <20250521074057.GL29660@pb2> (raw)
In-Reply-To: <20250521004642.GK29660@pb2>
[-- Attachment #1.1: Type: text/plain, Size: 1846 bytes --]
On Wed, May 21, 2025 at 02:46:42AM +0200, Michael Niedermayer wrote:
> On Mon, May 19, 2025 at 08:15:37PM +0800, chenyu202107@gmail.com wrote:
> > From: chenyu <chenyu202107@gmail.com>
> >
> > Optimizing 160k code size by converting static array to dynamic malloc memory.
> >
> > Signed-off-by: chenyu <chenyu202107@gmail.com>
> > ---
> > libavcodec/mpegaudiodata.h | 4 ++--
> > libavcodec/mpegaudiodec_common_tablegen.h | 10 ++++++++--
> > 2 files changed, 10 insertions(+), 4 deletions(-)
>
> This segfaults:
>
> ./ffmpeg_g -max_error_rate 2 -max_alloc 100000 -i ~/tickets/2950/mpeg2_fuzz.mpg -max_muxing_queue_size 8000 -f null -
==3638361== Invalid write of size 4
==3638361== at 0x2DFB01: mpegaudiodec_common_init_static (in ffmpeg/ffmpeg_g)
==3638361== by 0x4A114DE: __pthread_once_slow (pthread_once.c:116)
==3638361== by 0x2DFBB1: ff_mpegaudiodec_common_init_static (in ffmpeg/ffmpeg_g)
==3638361== by 0x4A114DE: __pthread_once_slow (pthread_once.c:116)
==3638361== by 0x2A6FFD: decode_init (in ffmpeg/ffmpeg_g)
==3638361== by 0x7E4BF1: avcodec_open2 (in ffmpeg/ffmpeg_g)
==3638361== by 0x62C444: try_decode_frame (in ffmpeg/ffmpeg_g)
==3638361== by 0x631575: avformat_find_stream_info (in ffmpeg/ffmpeg_g)
==3638361== by 0x306596: ifile_open (in ffmpeg/ffmpeg_g)
==3638361== by 0x31CA17: open_files.isra.0 (in ffmpeg/ffmpeg_g)
==3638361== by 0x31E9F5: ffmpeg_parse_options (in ffmpeg/ffmpeg_g)
==3638361== by 0x2FD297: main (in ffmpeg/ffmpeg_g)
==3638361== Address 0x4 is not stack'd, malloc'd or (recently) free'd
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
For a strong democracy, genuine criticism is necessary, allegations benefit
noone, they just cause unnecessary conflicts. - Narendra Modi
[-- 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-05-21 7:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 12:15 [FFmpeg-devel] [PATCH 1/1] avcodec/pcm: reduce " chenyu202107
2025-05-19 12:15 ` [FFmpeg-devel] [PATCH 1/1] [ffmpeg-deve] avcodec/mpegaudiodec optimizing " chenyu202107
2025-05-21 0:46 ` Michael Niedermayer
2025-05-21 7:40 ` Michael Niedermayer [this message]
2025-05-19 13:03 ` [FFmpeg-devel] [PATCH 1/1] avcodec/pcm: reduce " Andreas Rheinhardt
-- strict thread matches above, loose matches on Subject: below --
2025-05-19 11:41 [FFmpeg-devel] [PATCH 1/1] [ffmpeg-deve] avcodec/mpegaudiodec optimizing " chenyu202107
2025-05-19 11:54 ` Andreas Rheinhardt
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=20250521074057.GL29660@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