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 D62A849BD5 for ; Mon, 3 Jun 2024 02:16:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 476BA68D69D; Mon, 3 Jun 2024 05:15:42 +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 BE14368D691 for ; Mon, 3 Jun 2024 05:15:35 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2CDD2FF802 for ; Mon, 3 Jun 2024 02:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1717380935; 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=OfORBdUFQJD+iF+NtcOsVd0EsqNLlQ4KydbvSRqv2NY=; b=ErbySP8ERnOnzgB6JDx20jihwMScGcsvUIgGwoTkO8eEoOHdyRi5e66znkJe0BA1GXsW/+ SS7gpVUUQu/ZVIvtGsyNOi5W+kmGjLzc672BdT5p7IagVBPpJcFztx+ZEL4g7IZSIeyop3 Emg36+/O4c6vkX780yuxV1UlNrmvZmh5pVJYZjWYrHBsav/UbYuOCCJ3gpnqmMxT/pPM0E ikA+5zDYs/j63MgB0Nf0vJKG+1rqsF/nE3R0RLWxSDXgFgDnpqEDc8uRsOERFMSKuES+5w CMrQjBxkjlAMBRYJ1CsDZT/Ah8KW8Z8IcC8lp7rL17SnwgDR03AkLBVR36ZY1w== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 3 Jun 2024 04:15:24 +0200 Message-ID: <20240603021526.2372698-7-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240603021526.2372698-1-michael@niedermayer.cc> References: <20240603021526.2372698-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 7/9] avformat/matroskadec: Assert that num_levels is non negative 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: Maybe Closes: CID1452496 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 13959f8b3d4..328109b354e 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -4210,7 +4210,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska) MatroskaBlock *block = &cluster->block; int res; - av_assert0(matroska->num_levels <= 2); + av_assert0(matroska->num_levels <= 2U); if (matroska->num_levels == 1) { res = ebml_parse(matroska, matroska_segment, NULL); -- 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".