From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id AE5C34C88B for ; Sat, 10 May 2025 14:36:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C690768B799; Sat, 10 May 2025 17:36:16 +0300 (EEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5070A68C888 for ; Sat, 10 May 2025 17:36:10 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 8626A4399E for ; Sat, 10 May 2025 14:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1746887769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EpFreBQ7SViiR0fUNT1sQHlQvvoXb6cRER8PXhH+LTk=; b=EQwZYN38S3mlPeCgiHlqG5M32EKAwYTMOIJUYipkn9+7HDHEh09EXENZxHGQiExJXTSuj5 ys0RFqnmp0FH9N2Kgu7Iks6sTPmSx5nFthROfVvaqes9V2t9Ih1gjevhICceoFnOpJ+rhG G3+rcGJu7RanyFrGKd+ImqZrI0seNK2ibmpvQtMYxxjOaD2/+6R2XSWKxcg8m5tzpzsFPH f5X364R7BR4c5Nv2I+BHjRMKJyruy21n/8QkfMfJH9+uwhQdls6WyP2ect4D35as3cMLyM bNH4/ynNGCFKD0lYYezEEFWady2hoxZBx64MRV46+aird96+iQ6A/tXeMrkZ2w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 10 May 2025 16:36:06 +0200 Message-ID: <20250510143608.2309616-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvleehjeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeejffeufeffveevtdfhueevtdefjeetheeiteffheetgedvudduvedtffefjefhleenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/3] avformat/flvdec: Set last_ts before its timestamp is lost in ff_buffer_packet() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: signed integer overflow: -9223372036315799519 + -9223372036854775807 cannot be represented in type 'long' Fixes: 398356258/clusterfuzz-testcase-minimized-ffmpeg_dem_LIVE_FLV_fuzzer-4905723095482368 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/flvdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index b90ed34b1c5..8af317f3cc9 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -1852,6 +1852,7 @@ retry_duration: stream_type == FLV_STREAM_TYPE_DATA) pkt->flags |= AV_PKT_FLAG_KEY; + flv->last_ts = pkt->dts; ret = ff_buffer_packet(s, pkt); if (ret < 0) return ret; @@ -1906,8 +1907,6 @@ leave: } } - if (ret >= 0) - flv->last_ts = pkt->dts; return ret ? ret : res; } -- 2.49.0 _______________________________________________ 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".