Message ID | 20240711233417.1896879-10-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 fp24csp486894vqb; Thu, 11 Jul 2024 16:36:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU2HK5oq2v/Q7or5BWIJw4zPPgtt15sVRGA60bFMhxWDZ7FnJ3CIU6XPVBzcaS0ZaFRMeEqR3Y4OWKAh44+HZ9iJ1NZWa8wCbIm8Q== X-Google-Smtp-Source: AGHT+IEW+LvI0E3R/42IqHXTJFYNdkGu3h2hgKp7SZUK4CU7z39ucWc0p0Fb5cJlOgNPKRD349Hf X-Received: by 2002:a05:6512:15a0:b0:52b:c089:4579 with SMTP id 2adb3069b0e04-52eb99d1504mr7544629e87.49.1720741009660; Thu, 11 Jul 2024 16:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720741009; cv=none; d=google.com; s=arc-20160816; b=NaNUle75dlT5h1j/Jks7moqMrA5Y9Qqn110gggE84318k8EYbeqZSMgsNhw2dqn5I5 KpH/sDI1nTmLolTXDsGuGX8FGXCPrmdMG86tElbDqFSo0703e8Z0ppU22y/guzgi86f7 OGv2Nl4UJ3GOmOrPpLFzpaHJtb6/lsRY/NdmHJ4/12u6yKoQ6sUkBtazT8oAWD+n1YF8 zP4cbKTQ3TvE1AkD6BgM5wu2LfnzOdmHmM5LWerX+LL6xXX/+GpJOtXHs7dKY9s4CeA8 ZO2ePvqzU88AKlZundMnOEGn+QYfvtwsocnpuflyC1tzlIR1YqVfTPvpdGmfOfFYUTh4 dOOA== 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=zl79Bit1HdZJ3Cy8dPQAyjc5ttS2cPUPqFn6TEBFXRE=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=EPHqI1LP/sGblmZCxIWW8VB+Xa8KdKbFEbCOsneaYRx7WdG3By+3SIipUOaiHb3T/U a8qU7/1YmTQwMXm+FQQKJhF/zvSgoyMN4tCVT407NMNSV4NC9EttyjuzhSL8FCWmHHJJ DdhxaZ5ZuiHxXylwGoB5r8L9FAIYIiKNAUyvWmvAWIqTnOGHG0BHeTfrwZrx+fFOfpoR NgFv6WkZ0usE948TxQ2lI+VIzfa+CksHsgDQXxqHjGXOkXilj8/T8o+OtjgwS+BuegSH 78bOAUYa8nvWjYLP8k9R7KCZTjfp6278bG9t++XQqeYi1ke7QvNdwQtGVBYSczzWKz4X yN7Q==; 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=U3pE1C5D; 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 2adb3069b0e04-52eb9071744si2155933e87.237.2024.07.11.16.36.49; Thu, 11 Jul 2024 16:36:49 -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=U3pE1C5D; 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 4C59668DC24; Fri, 12 Jul 2024 02:34:44 +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 64D4368DBAB for <ffmpeg-devel@ffmpeg.org>; Fri, 12 Jul 2024 02:34:26 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id CC59D20004 for <ffmpeg-devel@ffmpeg.org>; Thu, 11 Jul 2024 23:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720740866; 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=oSS/Xr3PXSZnpqQsyIBNKFVYTTyeRMUW/BBu0vOYWvA=; b=U3pE1C5D9hXivOe2pg1dqL0j9xGyDchLw8ePrFPiyYqgmCh+tefnh1JdPSZXMRF4m7uvMY u5o7M7z7CqS+MKRVKE1BIFsaqSTP7JHpVJRmZlAGAOfKihmYSEBLpIrGCyrv6HD7TRqPSX rbx6LzIj0H/UgT0+cVsqg2JllPtbwYIJure3rtxSSDl6I5hkEKTR8Uzx0So2Pksxg5ictz BDBLqfx/lU1rdTq4N0YgHJFnKmaQ89+6IC0Xbwnuo/9xHnmHnPe+4gf6q1d20GeBAE+AQN 6QZiSajraFx5sTN7g8E/tOO6NrZcezLBF3nqpC5bNVXnd6IMHXsmBtuFkNwDug== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 12 Jul 2024 01:34:04 +0200 Message-ID: <20240711233417.1896879-10-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 10/22] avformat/nsvdec: Check asize for PCM 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: aTtOQiXxtxcs |
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/nsvdec.c b/libavformat/nsvdec.c index 3b8f812aa5e..dd01765d7d2 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -617,7 +617,7 @@ null_chunk_retry: pkt = &nsv->ahead[NSV_ST_AUDIO]; /* read raw audio specific header on the first audio chunk... */ /* on ALL audio chunks ?? seems so! */ - if (asize && st[NSV_ST_AUDIO]->codecpar->codec_tag == MKTAG('P', 'C', 'M', ' ')/* && fill_header*/) { + if (asize >= 4 && st[NSV_ST_AUDIO]->codecpar->codec_tag == MKTAG('P', 'C', 'M', ' ')/* && fill_header*/) { uint8_t bps; uint8_t channels; uint16_t samplerate;
Fixes: CID1604527 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/nsvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)