From patchwork Thu Apr 8 12:07:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 26809 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1E57B44BCF0 for ; Thu, 8 Apr 2021 15:08:14 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EE82268A215; Thu, 8 Apr 2021 15:08:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2016.outbound.protection.outlook.com [40.92.89.16]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 05E55689BD5 for ; Thu, 8 Apr 2021 15:08:07 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ACBYAkZdI0cIe3iVvqJhYm3od71eENuuNzvJzOr+whX3Xz4zfwc4hYWkcVPKrLljhnMllxs89toOmhnvLhVgK2lTuUmKDV2tBJ8RAuDNuPERCq3zJIoeY5m0fEgj+uqfnFd9JM2kcqRqI5YP+pg21dFCR9+ak7SWe1NLvQYqRuY/B5Llmucd+v6FO+atJ52gMLfFMqCnj5RgXj5yN/Aq4Mp+FJi5YsmwXP9B1GO0QgNTMihaD1M/7BGj1bZLgNrSLSSOWZ3OKk+5yWyHJ4TM3a0qBhNfQuy3vxhFekH24Ms/g3SHyLCx5WCcw427WstuExNKYJuaGQv4vN3GLP32QQ== 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-SenderADCheck; bh=C4Ut2/vYXfhmGByMl0g9a+li0kt7S3wPs5ILk0dZfyk=; b=Y0ROw9F4/ocULfYSQfrz4oBfuMa675wfYGDJF1Y8WPkpQCI7yMjL1rWe9PvcGqsZicGNpexbzHupFmqKH1A1g67po5TkthPBgvICj+SagFv6r/2buBzHShYJ1XnpOPN1PxW8R2VDi0sGDk+UFlEMbBH5PFiICiTOt4MvBY5bDpNylJw0I7BHubzfBConIGX6WB98xDXMWUR7IdErY1HeNrft1xhSsm5laKXCITBEU4uplQ4R2c9MjMV+EDobEkoN3g4n8QpNh5uOMVOriXUw7ZTK9nYqxO5tgD0Y4eUjOAAYqbLatV0BDrnCn+yEgGwUuT6PUPD8XDMyKRFm9fDrJA== 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=C4Ut2/vYXfhmGByMl0g9a+li0kt7S3wPs5ILk0dZfyk=; b=Z/XkN0KYpc3RKc8oHzWiQ+puO31k6UpyjiBVz+WRkxr3oj0DKlNh5cg9tCbyuFNjpEBa0n5yRJ81pUJf1Oja4k0p28dKcqriyWawvp9Vmqr/B0k/SAkV9qI1NwFW0G9bNaBEcqFIcewlHw39xxshFjFwBECiZW0MvdlhdnAvEjStccdg/wUXWii+/LD70wLRGS0J1Iow0tlYUmFLgHH6/BL7tmoH1wA4DJRyheJXptUY/S7NJtdyk5XvrwnBtlr5bqt8S4NszKM3wz3ZG+yv1H2EwI0fXRHj14cA4Ut9UrMDE6x0e35VNK+2W/URZ6bnd1mekNdP4tIOLuTA308m/g== Received: from DB8EUR05FT009.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::46) by DB8EUR05HT080.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Thu, 8 Apr 2021 12:08:06 +0000 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com (2a01:111:e400:fc0f::4b) by DB8EUR05FT009.mail.protection.outlook.com (2a01:111:e400:fc0f::149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Thu, 8 Apr 2021 12:08:06 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:CB6428FCFBD27D523210220A7806EC08B7E34686836510062C6DC1DD2970B1E8; UpperCasedChecksum:E8CED24FB4E4963D3BA120BAE1E0DDAAD5EC44A14CDE52EAC587E3A5B22A80E6; SizeAsReceived:7385; Count:46 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com ([fe80::8128:5de5:4e94:9a21]) by HE1PR0301MB2154.eurprd03.prod.outlook.com ([fe80::8128:5de5:4e94:9a21%3]) with mapi id 15.20.4020.018; Thu, 8 Apr 2021 12:08:06 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 8 Apr 2021 14:07:55 +0200 Message-ID: X-Mailer: git-send-email 2.27.0 X-TMN: [ozmPFksp4iIfus004zua3pN0unzgPbOh] X-ClientProxiedBy: AM4PR0202CA0012.eurprd02.prod.outlook.com (2603:10a6:200:89::22) To HE1PR0301MB2154.eurprd03.prod.outlook.com (2603:10a6:3:2a::22) X-Microsoft-Original-Message-ID: <20210408120755.870944-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.137.96) by AM4PR0202CA0012.eurprd02.prod.outlook.com (2603:10a6:200:89::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Thu, 8 Apr 2021 12:08:06 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 80e71344-2e96-4d98-a376-08d8fa86f7c9 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiQDZtlYU9il0lZUMXHTtvs5K37Gp09w+B+whhQDozWmCePJFRIIa5eXSylRLRir5grMxw3jK5T+MTGsZ9lrMaBKkuxHeVJKmThyk5lAki0bFy8eACU/m/AU2yDu6kVmz1p6JILvniYyCCmj+k17D9C3x/nJG7qZI8T2OdqfEImAlYl8RO9zIsj/hXT6l4g8p3Bws/decEHSGpv5fZ1OtfLdRR9kOl6VhopVbTFmkMOd5HYc7Uakes/szf2vCwVWP2LbRmtI3qCnVtiDXJuWEr/OIGRyI/wgqDam5l5rousLczM1jX69Z4h8w4suoz+ZkGOjc2eCTccIC/mb9prlAxzW/23LzfoIh3fVQ2CgSxwu4tlX00oeuryvpUOLY68ivtlvD5GazFrtGEKw52hIHKHb+Xwd+QuIVuEUtz1Ynev2yx9VK5FswVVEurGQFcoF+dp8Yeg/5P0+/PHaTXiDniYh30w0yJzYMLF7VV1d7V/cW4URnTDbkHZy+DUFIaLrEYyosSZFJ82CSgilM04q6kG4rEGkY25v+f7e4s/8bmE74sJ1sLWIZta4Q+v+dReW60QRjf1ySv1kUlViLhTV+RD6JbDEILd4tUlF6MClFyk2D4zFcih9UA3Sh7Rme0Bk0zwMV2M4SDdecTmYFJc4Kiepm5V5iPHjFWNM9O9EOsA96/RG0LYrVycCsMrwBw3tK01AeLJ3ws/gR4kLWGKfMqCiP1H99qCnuqT67BBRkkF4QqJe/IP1LL1Zzc5C04NdJ74= X-MS-TrafficTypeDiagnostic: DB8EUR05HT080: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LkmwKkkKrKU9Pr0sKtw9fO00yF37/4hWI++G1vvmn6D6fflpSKj+4K3V25KiA9Zo6UcKuV/rayqQ2U2S3+OWRxT1FugrME1PMDW9qZE1KE5XF7nMJX9mN57Dv3/q4QyKD9Zg2IH2yFeOefCnZVv/w9l5VKVK5gHWkkar2HSMOVZOOphbcrY9fUQy8L269KpWbuqhZN8lsZ97YhwqFHQeG4Z/yhpMg2wGNQjLHJJ66oRpYMn4g6inpybdwEGU0IXdR2YI3JeLIdFoEdkC3RNFNmS/gjdEsA5VMadwK5j2Tn0RgIokWcGOnlvIjWl2dcKjPzsgDSCsMpB5DCtD0dSZoGaU1+K19CKHGVXwIH/szEbl/U3jwMgS4IGn4wsRfQtfbwwlQ8+hpPw4LUuwsn6jSg== X-MS-Exchange-AntiSpam-MessageData: 78aExUl1v4rDB088hVNvx7bW0yGHsmTP/fkpZR1FR4Hnuwv9vlSNNh/6NmgyJ89R+vjqV7s3ZKuvjwt/X7FEjpyoae8ANs3El9Z6U+p54R8Mf1OUACRzYTmXkZGysPUSdey/6lVHEp1uIOrX+Os36g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80e71344-2e96-4d98-a376-08d8fa86f7c9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 12:08:06.5302 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT009.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT080 Subject: [FFmpeg-devel] [PATCH] avformat/webvttenc: Fix use of uninitialized variable X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Happened in 9168a1c0e67b5c31727b12329b6f52d2bb5e0a14. Signed-off-by: Andreas Rheinhardt --- libavformat/webvttenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c index 809fead69f..2bc86041a7 100644 --- a/libavformat/webvttenc.c +++ b/libavformat/webvttenc.c @@ -87,7 +87,7 @@ static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt) settings = av_packet_get_side_data(pkt, AV_PKT_DATA_WEBVTT_SETTINGS, &settings_size); - if (settings_size_int > INT_MAX) + if (settings_size > INT_MAX) return AVERROR(EINVAL); settings_size_int = settings_size;