{"id":2227872,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2227872/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260424122917.3911794-2-kanak.shilledar@axis.com/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.2/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260424122917.3911794-2-kanak.shilledar@axis.com>","list_archive_url":null,"date":"2026-04-24T12:29:16","name":"[1/1] support: kconfig: Fix compiler warnings","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"a19c301a651862757f69bcb90d26f8733595845c","submitter":{"id":93250,"url":"http://patchwork.ozlabs.org/api/1.2/people/93250/?format=json","name":"Kanak Shilledar","email":"kanak.shilledar@axis.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260424122917.3911794-2-kanak.shilledar@axis.com/mbox/","series":[{"id":501355,"url":"http://patchwork.ozlabs.org/api/1.2/series/501355/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=501355","date":"2026-04-24T12:29:16","name":"support: kconfig: Fix compiler warnings","version":1,"mbox":"http://patchwork.ozlabs.org/series/501355/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2227872/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2227872/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=ZV2y7TqM;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2C2p4zQmz1xvV\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Fri, 24 Apr 2026 22:29:52 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 3D55A617A0;\n\tFri, 24 Apr 2026 12:29:50 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id vjwE3w62JjJs; Fri, 24 Apr 2026 12:29:49 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 4746E61796;\n\tFri, 24 Apr 2026 12:29:49 +0000 (UTC)","from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id 3FCF924D\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 12:29:48 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 262D142786\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 12:29:48 +0000 (UTC)","from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id oyQcUS7q5g5F for <buildroot@buildroot.org>;\n Fri, 24 Apr 2026 12:29:47 +0000 (UTC)","from PA4PR04CU001.outbound.protection.outlook.com\n (mail-francecentralazlp170130007.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c20a::7])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 53EA142782\n for <buildroot@buildroot.org>; Fri, 24 Apr 2026 12:29:46 +0000 (UTC)","from CWLP123CA0262.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:1d5::9)\n by AS8PR02MB9090.eurprd02.prod.outlook.com (2603:10a6:20b:5b8::9) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.16; Fri, 24 Apr\n 2026 12:29:41 +0000","from AM2PEPF0001C710.eurprd05.prod.outlook.com\n (2603:10a6:400:1d5:cafe::bf) by CWLP123CA0262.outlook.office365.com\n (2603:10a6:400:1d5::9) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.22 via Frontend Transport; Fri,\n 24 Apr 2026 12:29:41 +0000","from mail.axis.com (195.60.68.100) by\n AM2PEPF0001C710.mail.protection.outlook.com (10.167.16.180) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9846.18 via Frontend Transport; Fri, 24 Apr 2026 12:29:41 +0000","from se-mail10w.axis.com (10.20.40.10) by se-mail10w.axis.com\n (10.20.40.10) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.39; Fri, 24 Apr\n 2026 14:29:37 +0200","from se-intmail02x.se.axis.com (10.4.0.28) by se-mail10w.axis.com\n (10.20.40.10) with Microsoft SMTP Server id 15.2.1748.39 via Frontend\n Transport; Fri, 24 Apr 2026 14:29:37 +0200","from pc66231-2602.sto.se.axis.com (pc66231-2602.sto.se.axis.com\n [10.133.4.42])\n by se-intmail02x.se.axis.com (Postfix) with ESMTP id B190228FE;\n Fri, 24 Apr 2026 14:29:37 +0200 (CEST)","by pc66231-2602.sto.se.axis.com (Postfix, from userid 21940)\n id A6C8E304A26C; Fri, 24 Apr 2026 14:29:37 +0200 (CEST)"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4746E61796","OpenDKIM Filter v2.11.0 smtp4.osuosl.org 53EA142782"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1777033789;\n\tbh=2Y7hPgoAWsreuPa3qYPTbSye0vQD7WJYrW6ZspY4LD0=;\n\th=From:To:CC:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=ZV2y7TqMdCJOWrEsiZl220GwVgTQTp9WbkqnJiM3OPXMOeOQosFAhQdcbflq870JI\n\t iPUA5WPqCNxSTjjowAWKROtHQUNk6xbNfclRGVk+BUUNHmuFP1WDm+4TkCDGW5dPuw\n\t iZ2i0AlgIVKSS5q+TPXWwXLUNHZkJi9YGRGB4RaV3tyIjxSAUnypOAx9R/JailuaLq\n\t NmSzTv2Lh0KWGGBCJXzi/a90sWyzf0+sPGF4gqdGkPa5mOi1wBdBESiT8L5JxTmcUA\n\t lebqpSZO46ob4PgT0rqRM+q7FOh8orsT1UHs6jKY3gO7CQiR7Vqf2ByLFK4tcMVvht\n\t 7iZP4/Jh3jOuw==","Received-SPF":["Pass (mailfrom) identity=mailfrom;\n client-ip=2a01:111:f403:c20a::7;\n helo=pa4pr04cu001.outbound.protection.outlook.com;\n envelope-from=kanak.shilledar@axis.com; receiver=<UNKNOWN>","Pass (protection.outlook.com: domain of axis.com designates\n 195.60.68.100 as permitted sender) receiver=protection.outlook.com;\n client-ip=195.60.68.100; helo=mail.axis.com; pr=C"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp4.osuosl.org 53EA142782","ARC-Seal":"i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=REbOFwhZ18K1TtdEjoyVFuYJmxeZphpGjLk7GoWP4dx6g6re18Dmnn900eo46fYeF3lik29fAWQO/80Jvyq5N4TBTKcXfT6JHZptYD++8oQb6P96AGANioCoqFGSOZRc7UeTAKlL9+6jaNZ/uatGqyfI2EzQGaCvlzlDKIDti+9avCl4P+vVQpOtu+Wv/ifeCLH6IHK2opsBfVFiOK2psog6tNMfr8uJ5xW4HNj5713xW/pJYMURzqkO898IW14no6ZhCNY1VKDq5yrjnbFmoQfYCtIc+Zts3UONsch6tx/iJaGVj7TNqBYC+My0ywtqfQYZyP0igO4fNLTu+TaQyg==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=BuJB/n32naTJhzlluLwfOyXu+9IptE8yl0a6LdPNowo=;\n b=QJlEeW9IqKuLFQ11AoGOuKGG5Tjc6h/rS/aPUebWXSeb+UshcUXKr3HDaDvpXmtfNdysOKJK1mqMAuMuFsavFnLccTADtaRBvC+CkRWOVDe/JHouwF0DSYVlRrJkdCVHTw/n5P1iXjV11mWNeM7Il+EZMAONCVvJ4jf9/5otNcF6ZCR3pzpjbTRHrXpWaTwpfZ8kZxxOMwilZEeIjl3TSvMx8ewAJ2Xgaiu9ZzpxcG21fSbg/MGmYaopvp3c6cO06SUJ6Xtw7dkOkZaDCcj1n/F8Wiw2QwVVpsvidLow3XAyzvh4xkBQQ8bLP8LcUisUwdbfn8vDSP1wBpEf/dehcg==","ARC-Authentication-Results":"i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 195.60.68.100) smtp.rcpttodomain=buildroot.org smtp.mailfrom=axis.com;\n dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com;\n dkim=none (message not signed); arc=none (0)","X-MS-Exchange-Authentication-Results":"spf=pass (sender IP is 195.60.68.100)\n smtp.mailfrom=axis.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=axis.com;","From":"Kanak Shilledar <kanak.shilledar@axis.com>","To":"<buildroot@buildroot.org>","CC":"Kanak Shilledar <kanak.shilledar@axis.com>, Petr Vorel\n <petr.vorel@gmail.com>","Date":"Fri, 24 Apr 2026 14:29:16 +0200","Message-ID":"<20260424122917.3911794-2-kanak.shilledar@axis.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260424122917.3911794-1-kanak.shilledar@axis.com>","References":"<20260424122917.3911794-1-kanak.shilledar@axis.com>","MIME-Version":"1.0","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"AM2PEPF0001C710:EE_|AS8PR02MB9090:EE_","X-MS-Office365-Filtering-Correlation-Id":"74b9bf2d-e0c1-41da-2b31-08dea1fd28d5","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|1800799024|82310400026|376014|36860700016|56012099003|22082099003|18002099003;","X-Microsoft-Antispam-Message-Info":"\n bHskUpIXw8hKN7EZIO6kZwAorsV+HjO4md5k+tC6fMMhdonckYUVIzG3J6A5F056o7Wq1vI7by8FJvxZbWz/J5SIwlfXVJE3YZS3OT0WVHYj+YHdcjdAXzERTVKnDM15iKWVDAWGF6ELspU24v0aq+Ols6apxt+qs130anmIhm4H4hIIm7dMfO9pmiQgtWvPOQJ2cStZQloQZtFym2kDWKQiERN2G3rfPcP1oIqAspXR6/7MQpPJlz5WS1WCon7Os2/Sprmmt/9cj2IXpE4jkzRJ54sN3xlbneuvwqTdlNbWRkPvqTL8zfz0bs594p6d4jTItZyr3GW1imtiCKBFaxrnY5pYYE7j3KKiP0XvUOAeoCHrWfQDq0Ez8uY0mIteTqm44XG179odpKpbt8Yk52fW4dTo7RPVWIFP2HuY37oFye7K3m6xa55gr2nD46vF5aIUKTPPzVqwT0e45YRj/XV65tcRIJTT4F1t5lyKMgGt+hnEt1ctcbtTywnT1xypgQ96+ZLuiXOU9ak4RuNFeIfXuUzJquQG6cEMZaCrF6c2qteLmjEvH8uwkdn6cYjWL7ROgBQL/AZga6D3Dlj4LJjkBelqOIQheyviWdhhYDPNDcS0zTxfhVN3n5ds77QdHeN3s6BKU0IO9PzrjbggpYSjgddvvHHUvkuGufmnwgY2OiEyi718dLcoPhFRITzxjjDnvyq0iBJ8l2Lh/YJiD+A4+ccSPjaybW+2pWM8UAS9dU7FlCOhP80KLMv/umWlVpoB4YmThEhJjzh2BzQNrw==","X-Forefront-Antispam-Report":"CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(1800799024)(82310400026)(376014)(36860700016)(56012099003)(22082099003)(18002099003);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n QOlOJNappHwFrjuXoHcH78ENCCWV4IwpST5tXBJ2FpfM1DeliGLHYn4qn86EF4Z/uggiLyT1g/1tIT+CFSO5Inxe5hZauoza5K/XutRgcK4JoSFWuBXbWhjYoJiYJqFGpnhB+/0qjjuwtIUPW0OYP2Oq0e3WAQ1qFTTa6ubBhQKUvmQiKJaZC71c2GdACoPARvrYc0yNPrcmaO8d5RbGmhswFG6d4lAcskFOESfEeSrl3fPBDAq/JwpphaiLW51lfdCWtg7PH2cIkh7jjcexL6qf6rUWYC4QC9CT/MMBUDiAo+Amn3MeCrK1K4UkwL0wumQfA4RTdDBA7HpbtdOIpPqu9SV87cbYiKuhCGHnlvqiVB0LhE3jRdRw5DB99Dm8HILEkfcITlbXiCo8TD5tT0FQyzh5f2ntppxFCPCdsC8ZdWxTaX8GOao7k+Y7H8ec","X-OriginatorOrg":"axis.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"24 Apr 2026 12:29:41.6657 (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n 74b9bf2d-e0c1-41da-2b31-08dea1fd28d5","X-MS-Exchange-CrossTenant-Id":"78703d3c-b907-432f-b066-88f7af9ca3af","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100];\n Helo=[mail.axis.com]","X-MS-Exchange-CrossTenant-AuthSource":"\n AM2PEPF0001C710.eurprd05.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Anonymous","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"AS8PR02MB9090","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=axis.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=BuJB/n32naTJhzlluLwfOyXu+9IptE8yl0a6LdPNowo=;\n b=LvjY3c5NUMHJF7aZZ+dlt8wGyBBi/TLIR72ttWY4Md+5SOcd5o5+naagg5fLdrmTlHB1xJxJw9RvjLdiqBSZi/dm4WUEaC9uzLhXSCQLi7bfHPba7BTKO/3xP48XJ1QmpL1LrPhjMG5G6LSYIZ3rpE40khvqqAaj/RwH4nbRnnA=","X-Mailman-Original-Authentication-Results":["smtp4.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=axis.com","smtp4.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256\n header.s=selector1 header.b=LvjY3c5N"],"Subject":"[Buildroot] [PATCH 1/1] support: kconfig: Fix compiler warnings","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"On Ubuntu 24.04.4, the compiler gives the warning of\n`-Wformat-overflow=`.\n\n```\n./util.c: In function ‘file_write_dep’:\n./util.c:86:26: warning: ‘%s’ directive writing 10 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]\n   86 |         sprintf(buf2, \"%s%s\", dir, name);\n      |                          ^~\n./util.c:86:9: note: ‘sprintf’ output 11 or more bytes (assuming 4107) into a destination of size 4097\n   86 |         sprintf(buf2, \"%s%s\", dir, name);\n      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n```\n\nUpdate `buf2` to `PATH_MAX+20` similar to `buf`, thus giving enough\nheadroom for the filename suffix.\n\nSigned-off-by: Kanak Shilledar <kanak.shilledar@axis.com>\n---\n support/kconfig/util.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/support/kconfig/util.c b/support/kconfig/util.c\nindex 8665f5bb89..c2e7979ac1 100644\n--- a/support/kconfig/util.c\n+++ b/support/kconfig/util.c\n@@ -35,7 +35,7 @@ struct file *file_lookup(const char *name)\n int file_write_dep(const char *name)\n {\n \tchar *str;\n-\tchar buf[PATH_MAX+20], buf2[PATH_MAX+1], dir[PATH_MAX+1];\n+\tchar buf[PATH_MAX+20], buf2[PATH_MAX+20], dir[PATH_MAX+1];\n \tstruct symbol *sym, *env_sym;\n \tstruct expr *e;\n \tstruct file *file;\n","prefixes":["1/1"]}