Message ID | 20240919225639.2376418-6-michael@niedermayer.cc |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d154:0:b0:48e:c0f8:d0de with SMTP id bt20csp620111vqb; Thu, 19 Sep 2024 15:57:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW8kuSAJcGXFM4SGinUAd0ZvFOWov0AVuSXnZW0GtI5DnWB30aJ0H+4GDWFlfBv77rs7YxaZma3FlS3p/VANSrh@gmail.com X-Google-Smtp-Source: AGHT+IEedwQKU/p3FROF1SouAew+On8gyGHygwo8iqD+CQ4nvHkRqlVCf3UZtg3tX+9h+hUzUWkl X-Received: by 2002:a17:907:1ca1:b0:a80:a193:a509 with SMTP id a640c23a62f3a-a90d4fc3263mr30411166b.2.1726786661352; Thu, 19 Sep 2024 15:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726786661; cv=none; d=google.com; s=arc-20240605; b=WA2Xks6AeUsciCckldN7yAauMstLfD6sj2DlmZ+5cGw1x2hWOp2JyfH2GZy44La5Ce yAnH4X8CR9Jdyy/BrevfM0vhNvcdKRrNZaYLLyqV4SPatLgm0JuQuZ8tGScaL6ebWrsQ /QKHgQFRTRY2l3X9cTQdZwkUG8g5aQ8MRYiSk8aVitbu0we4WNWu3UTyKqaGXWrqB/Oo iShUd8GgxEk7qhk3DeDfu08sQ0ADHwG+h0dRcQ2ic8C696UDJgCWqHlvEjbATsFx2jvo 9/4iuL5mC4wasPhiJVt9ng31xIyaXBc7H0b8cKd7hb7dJGftwT6qblsS5mOGr/+ejiku 7p/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=QgWsIM1Nx3WUDV4CBSJBitDZZP+VDxQ66Rm67c++uk4=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=Zw3FYQprEGMyVQ605/xEw9vF5CLg8PLNVBU50nlRpZAs6xZbk9ST8NYpi2rr2/JF3y YaPy8eWUC40A0DuXSq/nZUtFnodqok57uldofkBwasTxtlkm/snyTLfEv6rhW3Bhdhns gNG0lwnBc8HuFqed9Q6Hjfr/iRDZBzdQcmfrl8TfUr50wxub2y5lxJGST6w38DTb8Eji 1BjR5a++TbvbY5K2Hu7rcBLoChchp0oJ9fUszQRD7BBWrZhFkhj4gaJPZE8zpRfvTDGX T8OzE1xSDK7LHQ+xuaIBVg9fLOt0BekqQAaMTLiNRirPvKUX4Pr26UZhTGVNIMmywFWH pkQg==; 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=dZjhIx9B; 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-a90612c6509si874344466b.484.2024.09.19.15.57.40; Thu, 19 Sep 2024 15:57:41 -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=dZjhIx9B; 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 AB60F68DD8B; Fri, 20 Sep 2024 01:56:53 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CAE7F68DC89 for <ffmpeg-devel@ffmpeg.org>; Fri, 20 Sep 2024 01:56:44 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 20FDAC0002 for <ffmpeg-devel@ffmpeg.org>; Thu, 19 Sep 2024 22:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1726786604; 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=NRIeV/X/lbew+VFzDH4K2aOmfS3xtxoBVYN+tXZLerU=; b=dZjhIx9BNuqhJ+8Nx2JuU67A+km9A417dbUzi+M+ULmbCEzhvEC8IhZTiqXOWZzKn5QnEl ZQB6v9ubhKeOj87cVkcRBzxs76EJd9buAPvKuQ2jh1dTktqFu/AJOxJFRfL56T7ACQny68 L4H7zym7Iu8eaywsMnk3vrpkDKmC34/BEapWfPgmnvQWNJUCGfiXECAUrfyiSYFAlnmTbx 4wEcRIxt8/5OHmpHLDK38ms4+i7p4l/MocSBrnnnUztZOx5pkZI0HxAbZ+R4dS4m8msl7r Yb/VyyRMVmdOmtxIrEWGKjIw57pFFALMljf53PwYrruGBURF6cQwI4KAUmIAlw== From: Michael Niedermayer <michael@niedermayer.cc> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Date: Fri, 20 Sep 2024 00:56:36 +0200 Message-ID: <20240919225639.2376418-6-michael@niedermayer.cc> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240919225639.2376418-1-michael@niedermayer.cc> References: <20240919225639.2376418-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 6/9] avcodec/aac/aacdec: use correct index in deallocation 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: iNOU0RSnZrUu |
Series |
None
|
expand
|
diff --git a/libavcodec/aac/aacdec.c b/libavcodec/aac/aacdec.c index c37de2e0036..4110bc40ca5 100644 --- a/libavcodec/aac/aacdec.c +++ b/libavcodec/aac/aacdec.c @@ -1104,7 +1104,7 @@ static av_cold int decode_close(AVCodecContext *avctx) OutputConfiguration *oc = &ac->oc[i]; AACUSACConfig *usac = &oc->usac; for (int j = 0; j < usac->nb_elems; j++) { - AACUsacElemConfig *ec = &usac->elems[i]; + AACUsacElemConfig *ec = &usac->elems[j]; av_freep(&ec->ext.pl_data); } }
Fixes: memleak Fixes: 71084/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5857751899635712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/aac/aacdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)