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 8B4084AAD0 for ; Thu, 11 Jul 2024 23:35:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E378768DBDE; Fri, 12 Jul 2024 02:34:35 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8989168DB30 for ; Fri, 12 Jul 2024 02:34:23 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E8FD71BF205 for ; Thu, 11 Jul 2024 23:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720740863; 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=468tw5Go5kw7TbCF5EZoiXx+0biyBsNuTNAMo4G8PMg=; b=CZmmUqXZ9aqXEEoplVb1RAsmcR8gUfD/ZvkAAvhR/J4v/hqPUZAkfdKOA2fMNDmLItKEvr wrCiSqt3BJwRhPOpunFkK4OXPTgXQIly38pKq6G+PRf55PytFVkJg6SLM8wK38933in+WJ kQSkQQUF5D1r7youwniiOJruWOIEatwjVeALjMQUMvX7JeVNl2WbiUti6mmc0G1O1L7AFB Fm6JMv7vlgsGAlTUn9KrqMsoDmxBI7CLYRM6v/dya2SnT/Q2Jo1IJ98DBuPWiDD8qBteHI iig4eqYSGoOk4ZPvzzNffxu162qiXjdXCZ0xBMF8Au54Vbu7t0i9KhyYQwc/3w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 12 Jul 2024 01:34:01 +0200 Message-ID: <20240711233417.1896879-7-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240711233417.1896879-1-michael@niedermayer.cc> References: <20240711233417.1896879-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 07/22] avformat/mov: Use 64bit for str_size 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: We assign a 64bit variable to it before checking Fixes: CID1604544 Overflowed integer argument Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index d862434d256..7c33c4477dd 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -333,7 +333,8 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom) char *str = NULL; const char *key = NULL; uint16_t langcode = 0; - uint32_t data_type = 0, str_size, str_size_alloc; + uint32_t data_type = 0, str_size_alloc; + uint64_t str_size; int (*parse)(MOVContext*, AVIOContext*, unsigned, const char*) = NULL; int raw = 0; int num = 0; -- 2.45.2 _______________________________________________ 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".