Message ID | 20240711233417.1896879-6-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:2298:b0:482:c625:d099 with SMTP id fp24csp492423vqb; Thu, 11 Jul 2024 16:54:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXFnqiFX2zw288YfhJMf2iWWW8d/bswhBK4zu1x9qveh9223Xu6R5lpRwnjHgTdM0RqNieep1JG3iGJ5ODwtntE92WSmnR/rPXQQQ== X-Google-Smtp-Source: AGHT+IHHk5ZVOIddROxG3+O6wCRCA3e2FhgOa+UGClBUtKF8oXUdAD98lyHVVgfjlaUj/MMcrtn8 X-Received: by 2002:a05:6512:b10:b0:52e:be2c:4b05 with SMTP id 2adb3069b0e04-52ebe2c4c83mr4833910e87.21.1720742053290; Thu, 11 Jul 2024 16:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720742053; cv=none; d=google.com; s=arc-20160816; b=EUwia6Ajkrhg4D3EzXAdtrAb/GAXVnpVsy7Xx0Ep6QxBXxNkGXxVFSvhIUT54W0thd fpYyzHtGhPXPs626vJycKOdpCLpwAq+RG7wpAuzsXAi4cvny8H5pz2c8rJZzfxaS8CMw htIxXl25tq5nov3e97p+10dH8IZ5yzswJZvN/0j0Hm9cbRxsI3ysC6ZOHAsTcg7vVIlU J7zIxfrGGTjQP7gKmRmr0OcvHMQBdDXM90MR38Lrp22DyT//QDfScdDSrTb3PE+q0w0v nXomlS+fkky6rPUf3Kh2jId6CWFFqHagi3Op8H5OjSe6/0QWj30VMcVHVwzo8pA/OUa/ VL/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=InyBTSb+xfsT7xvTqEIvDGole0koH2kcwEW59L17szk=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=JN+MfRUz1qDlOVEtDgfbmGSdrLNQLo26vegQJ5ZdxWf13zAzhkuyOwNwSxqUZlsTm5 izYwvbtR4r08mYjEG4UpzF8GFQ88Sm8OEKEv5IoBPuOo5zetXiPElMiQeu2Y8zqNZAlP xmgLLqg2Bhr+M1zo/r/NG25zJJA+g4VXFG4JigvpiDKSfi+siYkTFTuBa1MPH2c20MpH /+DW+t6aQRE1xD1jiRexR3xv/Oxgz+paW8oZzg9SUgN4r+iHNmTnEubhm9CD4Tav/aTK ajQPApT6x04Jt9AuRPtF4cOy5ELgt0/GTCRTgC7vvL0NzARRWfVhx5qZM9YVFX3UAdEF x7+A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b="ZhaQ1wC/"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a780a9c6e94si385096166b.46.2024.07.11.16.54.12; Thu, 11 Jul 2024 16:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b="ZhaQ1wC/"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 58B7B68DBAB; Fri, 12 Jul 2024 02:34:32 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CDEA468DB41 for <ffmpeg-devel@ffmpeg.org>; Fri, 12 Jul 2024 02:34:22 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3C32C20005 for <ffmpeg-devel@ffmpeg.org>; 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=1720740862; 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=5NFy5ykPv5Empm3pZg78mTnsoIYE0ugCq1cxkfo8FZQ=; b=ZhaQ1wC/A5KQAIUo3H/KDnfx71q6G4gq8jDwjVicY0KboFWHNr0QfLg9F9dTfmqq8786Qv t3A3Og+DcfJLTTnsfXdvye0rx1ZZtHlZ5EESzvivjSbUs4bivbbeHj5zxoQOta19cjEX2/ iA3DplY+Yuj1tQC1taR2onjjjWfiQvqrZWDhFLqoQpGdYmbiIWS5X6iQRhF0YfcJtVFHAo hLqniWCENkdewSXOCtUwZa5Wbf0YKgjLou9oAEZjO95AeBo9aWt6aB+2Vb1ETMZGd4SO/D rXqbX3u+laCMPo75agJcIymqynomMrPBWb7e6HYglfhW+KK5MjsWlDG8lm15nw== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 12 Jul 2024 01:34:00 +0200 Message-ID: <20240711233417.1896879-6-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 06/22] avformat/mm: Check length X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: 4iFefOUkvYfK |
Series |
[FFmpeg-devel,01/22] avformat/asfdec_o: Check size of index object
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/mm.c b/libavformat/mm.c index 23c025d8525..e377ed4fbb9 100644 --- a/libavformat/mm.c +++ b/libavformat/mm.c @@ -95,7 +95,7 @@ static int read_header(AVFormatContext *s) type = avio_rl16(pb); length = avio_rl32(pb); - if (type != MM_TYPE_HEADER) + if (type != MM_TYPE_HEADER || length < 10) return AVERROR_INVALIDDATA; /* read header */
Fixes: CID1220824 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)