Message ID | AS8P250MB074440EE3B286BBF4099B2338F4E2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | eeb99dcb51f2c985abb53a8920fdd165a7d4863f |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c493:b0:19e:cdac:8cce with SMTP id eo19csp330765pzb; Wed, 14 Feb 2024 04:04:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWVV23195HJmxz4w+12hYxlejZS/RNQ1HKBYNGkuUZqkAkps3BMHnZhnE9CLFrfBDyCuerS0+9RHCg1QOrKt66uI4hdOx1/qC+MXQ== X-Google-Smtp-Source: AGHT+IHtVqOnm2bex2zjAqw5XMJ5DZvYtAvGRCUiFnzYD4J9uyB3ve2trb5aPiBD0GcLu6Ly17rH X-Received: by 2002:a17:906:6812:b0:a3d:2222:7f84 with SMTP id k18-20020a170906681200b00a3d22227f84mr1529722ejr.37.1707912249839; Wed, 14 Feb 2024 04:04:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXh5WObtdVb7iDk0zjwtr+MwjM0LJu4MKzgxkywSncj3clJkAA0t9Ee2EAqLQFVbgl6xxKXzWeG7DDG7qO3RQc9DDsSAqwQZ96s2f9D9nm2V0G5N/OR/6aTUdcdKx7IAM7As6RT6Cp6gpRuuDWs1bvruHJPta9xalT7FbKVqwMXudI6Bm7oHUjNm2jBTdTaPTsC9Y2KRscHEfL/9ZTt+oFn8c7DLrROod3BZeJvz+I6lQ+m0ZsCCFWEGY/P8spRY3OIfK0SSP1Gsg2mg/wh2tG6/Sy2oSVNuT5GFGsS7b+OXM3Va4vV9nStcT2Wd1ED+e+KpXnYfAxvMj8Hzm/oSUg4CJDqmGaBwvOp9rAv55Plin9zw507gt5GwToKKvhe3E5CyQxj7Nu54bxpLGuvOcnmnjHkT5pPrfGCLVzwDjh3ky+JOZNSKibbV9jl4m0gc5McourEEiAPMhhZ80DqZd9IAPzIp+U+Hl8KnOJJ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iE8MieMyMGo34zxL75K9gMRNjGTlFY+wchCYnVjhkDb9Lzf 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 l15-20020a170906230f00b00a3d2bafe1acsi919748eja.759.2024.02.14.04.03.54; Wed, 14 Feb 2024 04:04:09 -0800 (PST) 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=qW6GvWoW; 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 13ECE68D1AC; Wed, 14 Feb 2024 14:03:53 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01olkn2060.outbound.protection.outlook.com [40.92.66.60]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5569A68CC25 for <ffmpeg-devel@ffmpeg.org>; Wed, 14 Feb 2024 14:03:46 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KgY8q9qao2+X3tE8j3n4ynIAY4zmgWJ7btaWsejnO3UNk6+JxTidh7zC/5E+RSTWYWS4NaAi303VpjBrFnUUIXszhI0GHIAugx3m1NLoOGnDOjUOB7zPtMGh9kE4k7uEpzuAqcgY2pVWslsRzjZHRbQLaZrE3VfZZLUshcItgxjG4aE6AMqSh1NJe+5ACZToLM2pUeDF3ydrnz6Rgt5xad2KOjR4McuxKvBHmlXKx1fnTnEbQ2AMFVjWT9op8XuSs+QMUJS3VgCnr67fqQk6GeKx/xZlnegGsh1p/Wgg5rMUT7PIeEqxQY81VHMtj+PbTsv6cBni00sEeqbff2SHHg== 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=WbW8AMgmV+6xdg5lwGaJZ62uISzPF5c3MAFEaayVnZg=; b=Nuodj6YYf0njNmMhaVNIW4d7E2lAWw9PmqQdPZB+Wxeoxx/qvTQSUDTp3EjMf7Siop36Yw89VppO7HxkQ0xW+SdHRimt4tztUL+RcrBxSVmTcvWbs23/o/oBNp6jKJBkPG0SiHYFujwsspkBgE2pq74LKo9y+RjJsysMsOuDfpLML+JCrTtZnEP1P2GDaf4iB/YTgFUWuI6EV3FY5I4wH1cy/GZV3GmZbq6cO+UtPf7b8xjCmqsSObGRH1zx5Zd4CSYqYEwsn51Dur+OXLd250lYTE3Z9zVDwhv6By5eszzo5dJOXftYaVIjQNqcsfYrOP55VssAg07liB7rKqQmrw== 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=WbW8AMgmV+6xdg5lwGaJZ62uISzPF5c3MAFEaayVnZg=; b=qW6GvWoW/m5lM3v+zn0nLCSzX2IEK9XvOLZtwOH2SeUcghZYpqQ3daVgv/wmEoWkw0NNXFHaPP78qF9srOowUGMfGRqmwk+79bCiYvq7ySofRafjTUbyL3iUNGkcrKC2W+h86lwCj0pubZ1xeaaBtwl5k2S7JJ7RJP2xp3p1TNKhf8hzfN+XQIy8iK0yCgM+AgXOSwpxdSQYUBvcVeCrSgSd1qe+sbNnANrL1cIZj20Tt84p/2oBx+cQFgF2o21PiFPh6Moy1ZO74iM5+zKGN3L8Iyqh4r013KHxw/tBYXCowFUNATLdRF6Eb1MAUo6PUR+BSU7jK1t2d30xFfO5Gw== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by AM8P250MB0157.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:320::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.26; Wed, 14 Feb 2024 12:03:44 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::65aa:deb0:a18e:d48d]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::65aa:deb0:a18e:d48d%5]) with mapi id 15.20.7270.036; Wed, 14 Feb 2024 12:03:44 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Wed, 14 Feb 2024 13:05:31 +0100 Message-ID: <AS8P250MB074440EE3B286BBF4099B2338F4E2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.34.1 In-Reply-To: <AS8P250MB07447985D1C6D4DACFA426B28F4E2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> References: <AS8P250MB07447985D1C6D4DACFA426B28F4E2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-TMN: [IJVXecyE8JI8f6ejOFjj5v8W2iLhTJb4] X-ClientProxiedBy: FR3P281CA0169.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a0::8) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240214120534.587472-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|AM8P250MB0157:EE_ X-MS-Office365-Filtering-Correlation-Id: 52963119-12dc-465b-31c2-08dc2d54fe19 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HKbmUiA8Ubv2EUSgRTSBLSLcwIJTdqPe5ft3pFGrnCr6BG1Z0lyFROXpISKFP/PTUVQkUsKAJncaoWa6LaZjO5s7aZ8zQyO9ysnuVNiSPjvm0ZAzvy5Wkf5DxmmDKCePGhGHOwVrdhRnTjN9c7EHA5OLjfJColrgtIlHPA41sizLJfKlkZZOvtQbRRUkh8xGvm5v3ylIEigYBYU/eE/pTc3H7ZIfj8FyjSY0RkwYXbH5eNRJpwCZgpisiqQtgaSMWUH1+6z1o3B+bKnzyBYCHdAKYymgfj2hQ3RqBUVqozPffrB3tIHW32Dnm1x1RKgRv0KeMA+F5OKWaNiW3PdUqGt2kEmjPJs7pTnfoQtNEP2UMun3IDiKII3l0Qbz+K35D5VtK2ysywo7Up4nnhdFozEqrGlyjWkLiHx4l2tBsgDIFUfdSy4kf0wqhF89CyElhb2zraZx9xxSm/1+AvwHNm7eAnRAXyfakEqWDiVjOa/Pae0vyLRbrwDyE3QjB8svbFGlkoO0ALyxBFFCgvo1Nkoimq3hwle/tlVs3c6QDYquk/PafTVx0G32EGYKzqKCV61taEatUPv0V4oncMZmxPgHdNHMIGTq5IshjMZKImkosp/GigH9oDLeZGwXb/Nx X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1wYj8qb57vjbnrBbxkyh+zw0bmMXgOAdHffZpIfkJmk6q+UexrOZ8qwBhN6nVdBLNSW8ykAstZl44JfAkGHxwvXokkDstimx0MlWHSFZNyaEPzzfyrUemVVSyhzEwmoKPQ3kxfm48KSobnAD5z5CreNXzfuP14WnR2M2l6XElGLwBQK97qepzpffwpWhXme6l2MVpOgEyxB5aMOcYbAqSxb0lGBIN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Mtmfihl5OrvyGfk06A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52963119-12dc-465b-31c2-08dc2d54fe19 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2024 12:03:44.5088 (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: AM8P250MB0157 Subject: [FFmpeg-devel] [PATCH 2/5] avfilter/signature_lookup: Check for allocation 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: x2PFyWurkcVz |
Series |
[FFmpeg-devel,1/5] avfilter/vf_signature: Allocate arrays together
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c index ad012ecced..90b1d0eadf 100644 --- a/libavfilter/signature_lookup.c +++ b/libavfilter/signature_lookup.c @@ -205,11 +205,15 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont } hspace_elem; /* houghspace */ - hspace_elem** hspace = av_malloc_array(MAX_FRAMERATE, sizeof(hspace_elem *)); + hspace_elem **hspace = av_mallocz(MAX_FRAMERATE * sizeof(*hspace)); + if (!hspace) + return NULL; /* initialize houghspace */ for (i = 0; i < MAX_FRAMERATE; i++) { hspace[i] = av_malloc_array(2 * HOUGH_MAX_OFFSET + 1, sizeof(hspace_elem)); + if (!hspace[i]) + goto error; for (j = 0; j < 2 * HOUGH_MAX_OFFSET + 1; j++) { hspace[i][j].score = 0; hspace[i][j].dist = 99999;
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavfilter/signature_lookup.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)