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 ESMTP id 3C71E498F2 for ; Thu, 23 May 2024 01:18:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D91D268D47C; Thu, 23 May 2024 04:18:11 +0300 (EEST) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56FB468D41C for ; Thu, 23 May 2024 04:18:03 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 85169FF803 for ; Thu, 23 May 2024 01:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1716427082; 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: in-reply-to:in-reply-to:references:references; bh=lSPmJNvB4Iu6Gz/uUauVzqCWIIge36qt4ldqIgCt0hI=; b=GZgt3I7dYYYBK4ano2TRGIKgZtQOfPVrJR3FHi/1vJ+dJlw8RqneuYsKFHejWLxv4brxNw 8WPXnb6hJDTjr3AABpmC2AGxPzjU+CNl3uz3LgX1haQl1FIW0FRFNWpM4TVflXrR0ZgDvp BrjRsDolR5AmQJv7HAcPKJG4SWV18/8fJ1RCIj9Olg+ldH1zU4fknWsa4fb3MZHn3yBlV9 lEWHGdZTd+NC5z0kfn8bhqpUdbeMlPTPrJjYcoPA+0XQZrMLQ+lW/hfmgZI3tBUQvdpKzZ U8DB0F1TNNq+M8tv0FnlUGABzI5WvjEkFDR3iOkBELkmEukCFF+GNZo7sbeKEw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 23 May 2024 03:17:55 +0200 Message-ID: <20240523011758.2434580-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240523011758.2434580-1-michael@niedermayer.cc> References: <20240523011758.2434580-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/7] avformat/argo_asf: Use 64bit in offset intermediate 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: CID1467435 Unintentional integer overflow Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/argo_asf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index 61bfc6de1fc..e08f029f80c 100644 --- a/libavformat/argo_asf.c +++ b/libavformat/argo_asf.c @@ -259,7 +259,7 @@ static int argo_asf_seek(AVFormatContext *s, int stream_index, return -1; offset = asf->fhdr.chunk_offset + ASF_CHUNK_HEADER_SIZE + - (block * st->codecpar->block_align); + block * (int64_t)st->codecpar->block_align; if ((offset = avio_seek(s->pb, offset, SEEK_SET)) < 0) return offset; -- 2.45.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".