From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 4CEBD4C73E for ; Fri, 12 Sep 2025 19:23:57 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'nFTm2UoT2KMOvoUuicM0c/FQpAD5KIktOXKcVrbDGVw=', expected b'74qrj63TR3n7emz8OmGO5EZ8HXSZbZnlteVdRRBmoDw=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1757705030; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=nFTm2UoT2KMOvoUuicM0c/FQpAD5KIktOXKcVrbDGVw=; b=J3jS4fo/3aFmwdtwOAu/2pUtViHyfSx3wHhdgMJPmJGguHkblxjvnqcpzCJk5iao01GdT tIOJMW9/6u2tk/9qKPdkuI4/FSjAYcsQ9XkDGC+54osCg8xYVIg1EaRTsyWO+RQWJtBQL7t YW/7ThP+cikdsaxJbW2u5fJ72xL1k/4v+DXmqamSupMgcO2IyGBFIQBYOhuw+zkT3Gd2CC1 s1u5pthtvollWZdJPEoNL7V8h9vwGpRpBFpKy0afMA1+nCJrkgQusFe3thODPBj6WPa4t2e VOCi76zD8PkaJjZPjOj/O8d1UKgQoefSf2oUuSACBzr5ebAZTL3usOVLjOUA== Received: from [172.19.0.4] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 0622368E838; Fri, 12 Sep 2025 22:23:50 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1757705028; b=Bu915pasc3xu5oBqewCJh2MWuh4Bm/Ns/pqQzYBaK2bdWZ67P2CTSUyxZjs6acTeKDZMl N+zIglt9I147TOliF8+m3iOCB98XHWVvonUdx/68OrTk/IU2VoUNtyovZNRcZovwh3ZFyZK Xb1jvSyfamr3nikZmUw7RqINDsDj91NGDkyTrfF1SnDeNHhXYLNDq+HrU2uPPYNntMYJDxW vx50EO8p+NjqBniOrybUsclYutlQL1ChAjEX9e2CbxQS/CAUCwrn+Er+kQzn3YaYPReB5fK yoBQCRfRQO4Ih6jpuwx0yPMTI+VzbrJy9hFbI9PqYmYKLQEt2JbNcCsmkk3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1757705028; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=7kDiqSErtEPj7LBsxKgsWCur7yAeS63kWbgCC3uQQ7o=; b=WMNw/73odiZPNvI+hmq4Un90PivmEypRezvgWCFy0KyP3GtODsepAJ7Ub+tF72w7vwWlq yNb12M7O1NIhQkibS4V/+zrWkkgpqRs1dg0rPdB7ptquX2Te3f1Ipj2BIyDcS4GSaEdRGeU I9813HwkFTz5EhrPgKqELhKv2Gd6OiQfa2mbcphZArzw8DrwYaOCHNInd2yYOqL/pHO9UFd HOdywzoBKTi26qoji8/xQDZDbEsHcvo2hk6yobcNyZ6sS8g0YLw+hTqs+bT8cioNFgAfdrl PMVGvEK1VFXzinEZFkKx2N4ci3ckodvGhdLzikalJ6oVzumHkU+WjFbdJ92A== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1757705020; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=74qrj63TR3n7emz8OmGO5EZ8HXSZbZnlteVdRRBmoDw=; b=DiQjItyVHrUXadGv9+jnziOyZrX/uLvsjPZ6EhBCE3MBLKIZQepgTdDUF5icDT7k+9Rka z5Xjh0jvh7TKWb8+uwWbToZXasg5JhpISUWHX5zuDZpmDURwQw1gWNb2sgsch2LpKdAK2Ks LMjKhJh0jzQouhI5yVyfNe5Ds2mGz7+Pu8L8aMObE5gKa9NCyjWnJIg4h7gBfT03ZOaeSp6 7PBdQdsV8FOUpZrhoD/Hy77fLpu1EutGWZxqVRWZNKt5H3NNSyUmQ88dNbMRD9w6xPI4OIU YUk9JSsclVy9juECw2iALxtAG0soZJTs6pqM/nLD5bs3BHNPbIKRWl2iLT9g== Received: from 3f9d35a0eedc (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 5CAFB68CD6D for ; Fri, 12 Sep 2025 22:23:40 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Fri, 12 Sep 2025 19:23:39 -0000 Message-ID: <175770502051.25.2773184180907193806@463a07221176> Message-ID-Hash: 4IBQRYB7IRWSMIBGJ6DJGVTSTPJ5L4S3 X-Message-ID-Hash: 4IBQRYB7IRWSMIBGJ6DJGVTSTPJ5L4S3 X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] swscale/x86/ops: Fix leak (PR #20507) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: mkver via ffmpeg-devel Cc: mkver Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #20507 opened by mkver URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20507 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20507.patch >>From 0c93050b46a431475f0af2e3cac7c400d16afc70 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 12 Sep 2025 20:47:57 +0200 Subject: [PATCH 1/2] swscale/ops_chain: Free correct pointer on error Signed-off-by: Andreas Rheinhardt --- libswscale/ops_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/ops_chain.c b/libswscale/ops_chain.c index 80162507b0..ef768b4904 100644 --- a/libswscale/ops_chain.c +++ b/libswscale/ops_chain.c @@ -234,7 +234,7 @@ int ff_sws_op_compile_tables(const SwsOpTable *const tables[], int num_tables, ret = ff_sws_op_chain_append(chain, best->func, best->free, &priv); if (ret < 0) { if (best->free) - best->free(&priv); + best->free(priv.ptr); return ret; } -- 2.49.1 >>From 18555df87e7838b88bc9c583b79fee2d8cb85555 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 12 Sep 2025 20:55:24 +0200 Subject: [PATCH 2/2] swscale/x86/ops: Fix leak Signed-off-by: Andreas Rheinhardt --- libswscale/x86/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c index 3b5a060f64..82a6d233b9 100644 --- a/libswscale/x86/ops.c +++ b/libswscale/x86/ops.c @@ -206,7 +206,7 @@ static int setup_dither(const SwsOp *op, SwsOpPriv *out) DECL_COMMON_PATTERNS(F32, dither##SIZE##EXT, \ .op = SWS_OP_DITHER, \ .setup = setup_dither, \ - .free = SIZE > 2 ? av_free : NULL, \ + .free = (1 << SIZE) > 2 ? av_free : NULL, \ .dither_size = SIZE, \ ); -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org