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 3A05E4B6FC for ; Tue, 11 Jun 2024 21:59:46 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B256368D8EE; Wed, 12 Jun 2024 00:59:20 +0300 (EEST) 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 F0A7D68D876 for ; Wed, 12 Jun 2024 00:59:12 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4FC30C0002 for ; Tue, 11 Jun 2024 21:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1718143152; 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=uHQXSXXE7kDxul68Tm3jz/rjw6R0oK/Fk9gbzeDjeJc=; b=K3BjBQyL8h+5JbD2qEDjjG+ZHE0HAVNYjmFtI00zdV6rxcUhk9f9i2bpAXlsXDKcfyKDs4 vstITjT5faRo3Rb00bz/p/IK0+2CG7HixparMs8luMFUpG28jfuYr2Y4GZ2GsZkV+1Sc6i m8klk3R2xQOIb0+4ZtmbyzKhgujtdOKRTAVnN41+LbNpqOsnfWBMtLwTJS+XCsq8yucp3E +FwZTWQw8VmGlvK9aPkTmboHnRUTPPnMbDkbL6geV6GQSrR85Tp5swJQA0yzEQ++R2f5wX brIB+4CBS7ffOxOnVco3Rrz/vKklPkDP7tP5KIvmZzbUHPOMaIeBg21Ac+Fh9g== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Tue, 11 Jun 2024 23:59:06 +0200 Message-ID: <20240611215906.1106071-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240611215906.1106071-1-michael@niedermayer.cc> References: <20240611215906.1106071-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_avgblur: Check plane instead of AVFrame 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: Fixes: CID1551694 Use after free (false positive based on assuming that out == in and one is freed and one used) Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/vf_avgblur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_avgblur.c b/libavfilter/vf_avgblur.c index ced0a2ac282..cbaeb974e5d 100644 --- a/libavfilter/vf_avgblur.c +++ b/libavfilter/vf_avgblur.c @@ -288,7 +288,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) const int width = s->planewidth[plane]; if (!(s->planes & (1 << plane))) { - if (out != in) + if (out->data[plane] != in->data[plane]) av_image_copy_plane(out->data[plane], out->linesize[plane], in->data[plane], in->linesize[plane], width * ((s->depth + 7) / 8), height); -- 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".