Message ID | AS8P250MB074471DDEA29072B2586F0EF8FE02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1706:b0:1af:cdee:28c5 with SMTP id nv6csp291131pzb; Sat, 11 May 2024 13:24:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVZIEs7TJBBBFgRioVMB+pbQ2rbsyl6aIF5m5h0P1WzX3oddWxGYTvp9vZ5l/W+2ikKGVxMHj6ziBKJGoqdn2xRMhOmEYZXvAPCmg== X-Google-Smtp-Source: AGHT+IG0uvU7bxvygRlKCU5oO2sWUVgn1gBVmnweRzCjUX64+L9ynjQP9PteD3hVa2Tvzt00iHd3 X-Received: by 2002:a05:6512:308f:b0:51a:c21b:73fb with SMTP id 2adb3069b0e04-5221007498fmr4409487e87.44.1715459098373; Sat, 11 May 2024 13:24:58 -0700 (PDT) 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 4fb4d7f45d1cf-5733c2d4d02si3335879a12.296.2024.05.11.13.24.57; Sat, 11 May 2024 13:24:58 -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=@outlook.com header.s=selector1 header.b=syt+kc89; arc=fail (body hash mismatch); 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A817C68D41C; Sat, 11 May 2024 23:24:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02olkn2027.outbound.protection.outlook.com [40.92.49.27]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8E44F68D2E5 for <ffmpeg-devel@ffmpeg.org>; Sat, 11 May 2024 23:24:48 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UoCM+KgJyQ1ofr/qr5sn3V0n01R8X6ik7hFf+7D9VF9fsB6TSociLQ1lxS0G4S7SM4H36419aLhk3CQfsuTanMidHZ5ojfiD9Z7k2zdPSdpumglt5+LVwv807ZxYumOhRmGmO5Va7X+jqABRZqsE5qwtwPucJrpp3yE6YxfkhxeULHRWgO+U7MjafS7TQeWRK6K8S8fW+NHEKxcximu9Pf+RGYeVU9hrisDJq9/hT3oDFSgkp+Ek4RlGY02xCqvdmVRTmFVd2AP9YOILc3nIJX45OvVXvSfO5H0SeMhbGz74X6T2eglhbeNclQkXH1oEqc4J7I6pvC2fz2UFDnF/gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9dnAz91VIPmr+cbPfCdXBrWrZXC/4otBubmk3Nw8uPA=; b=avNqzA/QYKXqocNckR1rEZNbmAWlDCGCf/v3/hUYES1hlWLP9UpufL863LjAhAKJuFjveILtuv0JVSC+iLGSNK/IAEPuDvcX6jcZKj7FMCLxTSL5//1KLBzgeG6Ac6tYEBBz4zu0d2sGFWPcAruMt/+VkConplRf4ZTUarxI6+lSPf6Tk7qHYrvpZcMvnfFvkEtTtBrjbGOF9rXB6s5nIUokeaQQS+6/SYYIODhunYl22xUbCc/ufrDX3l8V8O6irymSxnCSOqwgsYEiaBPpwGfggZmf1SYbQZrYYGTsdZtxsmJ5pZXZKco5xLHFIPJbq2vtAMmzHDvU1BlVD94lKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9dnAz91VIPmr+cbPfCdXBrWrZXC/4otBubmk3Nw8uPA=; b=syt+kc890c1b3rAyTWZr5D7Jelq6hfbnpj6LwR8NMpkfwTvVH0fGK7FVL2NBVYqIT4AGVucwQIREj7ImyrvqNzMNiUacEuLuV3eWKhHdCPO9AOr7bqd7GXTF0EMAHrO5XRvHZJDzk9ThkGidMXL6PDLIET8CYVsJn0aimtCJUmINCtC0NQHmsOedTlgRvZrdPnj1ar0SBTnRjMqwnhfBoXM95EIyTJeajn4n5gsZuPYzTMEghteKiR5G4oTBEZcJNZ8XXA2SEoNVYU6qQVghArh4zuUuaSchKHswG4yvG8Ag0iG7D530HGw367erlQQAqzrfE09dFgzPUhxk/CVwUQ== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by DU2P250MB0286.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:27b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Sat, 11 May 2024 20:24:46 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::384d:40d4:ecb7:1c9]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::384d:40d4:ecb7:1c9%4]) with mapi id 15.20.7544.052; Sat, 11 May 2024 20:24:46 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 May 2024 22:23:27 +0200 Message-ID: <AS8P250MB074471DDEA29072B2586F0EF8FE02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.40.1 X-TMN: [dsPIaC8idhz4wpTyEbJIcA2CHvnXHSx31q3jfwHF0LE=] X-ClientProxiedBy: ZR0P278CA0183.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::13) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240511202437.2411642-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|DU2P250MB0286:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b52a7e5-ba9e-4205-8130-08dc71f86686 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|3412199016|440099019|1710799017; X-Microsoft-Antispam-Message-Info: gJbNVEDyJ7zs01ls7E+/Tauv6ffp8owxvtMjJZ6PI/W0pAiEWx9rTktPy3iaok6NGVr+9JJevzmjR2tMN1Eqx0nsY78CS6eTRKM/T6SBxc6uyp1lbPkosOXwYbGXN1oiAXHqIxT5haDEzzGQW97k0viovPl18XF391oudsYpCQYUrJ/Al219m4k2EeTEurW/GgZ3hJOQGfp3RkMX7HQCRBMPFMhWfGMzn0K+hL4jYz1kcsTtknF4GFc3ybmqu3x5HlOLGuZA++1V0fpQnDsxVYNc9dimS/4o/RQrSj1Td1++5i7isAyHxVjfnfaNeaQbQCDrKuyREOiv5TlTZ/MgZH0/tbpUnmkR5DTXf+bMetDNlK0yFKC3fazDBNkzjqF/gwtVj7WCXvusX5cB4nhJ9U/MSHdSQ0DjNYHcwzYfUaXpg0wY04F8MO+ptqOPNhhT/b1YWeEaAIuHWzNwzVpxF5pCWhhKPUxCtHY5HvQH057h/OVRq/4E0qwk2Oh4CuTBCbLPey5YEWfKb6W3BIgc8gvC80cTnvAefHJqwEVjnESgTQBLNpl7sVDgNppka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5I/n8YowbvN/t6vJxb6kCxROm+MyUmebf17SqF52x2E8WCCiV1KlZC2+mvRPEBV6UgrfVaIIOGedtWVk7D9bYMskNOS6CZWfZAr/2Y8iOSiLmB7bG03fKADxvq4aNN5+zznT2n2YrmMAyqTGaTd+i05U4DGX7J3abnb5bVL+S4TMS/w/es/2rHzbEwytcupjVbcFCLvtiAbDgT/ABdQ80TAd93UPt69vwFRzhpdtCnsf1oROAwx/G3WfbFaG49eBPRISsHvcVM4hqqVTU9nQSio22zitkebYcG5Gyb56swS6eytAI1xLyooWHX5SItmg5vRUfk6lefaFKO0gjMw07Pm7m2UN8df+kSBDuF69MGA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b52a7e5-ba9e-4205-8130-08dc71f86686 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2024 20:24:46.8775 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2P250MB0286 Subject: [FFmpeg-devel] [PATCH v2 01/71] avcodec/ratecontrol: Fix double free on error 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> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> 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: G+/BA3x/GoD+ |
Series |
[FFmpeg-devel,v2,01/71] avcodec/ratecontrol: Fix double free on error
|
expand
|
Andreas Rheinhardt: > Happens on init_pass2() failure. > > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> > --- > libavcodec/ratecontrol.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c > index 9ee08ecb88..27017d7976 100644 > --- a/libavcodec/ratecontrol.c > +++ b/libavcodec/ratecontrol.c > @@ -694,6 +694,7 @@ av_cold void ff_rate_control_uninit(MpegEncContext *s) > emms_c(); > > av_expr_free(rcc->rc_eq_eval); > + rcc->rc_eq_eval = NULL; > av_freep(&rcc->entry); > } > Will apply this patchset tomorrow unless there are objections. - Andreas
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 9ee08ecb88..27017d7976 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -694,6 +694,7 @@ av_cold void ff_rate_control_uninit(MpegEncContext *s) emms_c(); av_expr_free(rcc->rc_eq_eval); + rcc->rc_eq_eval = NULL; av_freep(&rcc->entry); }
Happens on init_pass2() failure. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/ratecontrol.c | 1 + 1 file changed, 1 insertion(+)