Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/6] avformat/jpegxl_anim_dec: Perform operations in a different order
@ 2023-06-18 21:50 Michael Niedermayer
  2023-06-18 21:50 ` [FFmpeg-devel] [PATCH 2/6] avcodec/utils: fix 2 integer overflows in get_audio_frame_duration() Michael Niedermayer
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Michael Niedermayer @ 2023-06-18 21:50 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Fixes: OOM
Fixes: 59802/clusterfuzz-testcase-minimized-ffmpeg_dem_JPEGXL_ANIM_fuzzer-5681765466112000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/jpegxl_anim_dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/jpegxl_anim_dec.c b/libavformat/jpegxl_anim_dec.c
index 6ea6c46d8f..c62b596f76 100644
--- a/libavformat/jpegxl_anim_dec.c
+++ b/libavformat/jpegxl_anim_dec.c
@@ -227,7 +227,7 @@ static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt)
     if (ctx->initial && size < ctx->initial->size)
         size = ctx->initial->size;
 
-    if ((ret = av_new_packet(pkt, size) < 0))
+    if ((ret = av_new_packet(pkt, size)) < 0)
         return ret;
 
     if (ctx->initial) {
-- 
2.17.1

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-07-23 18:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-18 21:50 [FFmpeg-devel] [PATCH 1/6] avformat/jpegxl_anim_dec: Perform operations in a different order Michael Niedermayer
2023-06-18 21:50 ` [FFmpeg-devel] [PATCH 2/6] avcodec/utils: fix 2 integer overflows in get_audio_frame_duration() Michael Niedermayer
2023-06-22 23:59   ` Michael Niedermayer
2023-06-18 21:50 ` [FFmpeg-devel] [PATCH 3/6] avformat/jpegxl_anim_dec: add FF_JPEGXL_CONTAINER_SIGNATURE_LE Michael Niedermayer
2023-06-18 22:57   ` Leo Izen
2023-06-19 17:01     ` Michael Niedermayer
2023-06-20 16:50       ` Leo Izen
2023-06-18 21:50 ` [FFmpeg-devel] [PATCH 4/6] avcodec/evc_parse: Check log2_sub_gop_length Michael Niedermayer
2023-06-18 22:27   ` James Almer
2023-06-18 23:01     ` James Almer
2023-06-19 19:03       ` James Almer
2023-06-18 21:50 ` [FFmpeg-devel] [PATCH 5/6] avcodec/vmixdec: Fix several integer anomalies Michael Niedermayer
2023-07-23 18:07   ` Michael Niedermayer
2023-06-18 21:50 ` [FFmpeg-devel] [PATCH 6/6] doc/developer: Require new modules to include tests Michael Niedermayer
2023-06-18 21:55   ` Lynne
2023-06-19 16:08     ` Anton Khirnov
2023-06-19  9:04   ` Jean-Baptiste Kempf
2023-06-19 16:06   ` Anton Khirnov
2023-06-19 16:09     ` Paul B Mahol
2023-06-21 10:04       ` Anton Khirnov
2023-06-23 23:55   ` Michael Niedermayer
2023-06-18 21:56 ` [FFmpeg-devel] [PATCH 1/6] avformat/jpegxl_anim_dec: Perform operations in a different order Leo Izen

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