From patchwork Thu Aug 1 15:20:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Corbin X-Patchwork-Id: 1140586 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.b="GC71/TDE"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45zw5Y0Zh0z9sBF for ; Fri, 2 Aug 2019 02:01:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4E9C884CBD; Thu, 1 Aug 2019 16:01:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUwxdEv0u7KI; Thu, 1 Aug 2019 16:01:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B901985933; Thu, 1 Aug 2019 16:01:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 574431BF30F for ; Thu, 1 Aug 2019 15:20:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5202788072 for ; Thu, 1 Aug 2019 15:20:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1QqZgnpvNG9e for ; Thu, 1 Aug 2019 15:20:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8662788075 for ; Thu, 1 Aug 2019 15:20:53 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id p17so74008231wrf.11 for ; Thu, 01 Aug 2019 08:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XBe5JCr9SbD0QuDTNeK15tbBZd12iQ8gOC4aC3WtUZk=; b=GC71/TDEGDqLSQiTJrSzSKcehgNrv8kKQOX/AL7w8eHPtB388yQT/NV95RFMByeoKi kySHAzMZErQWRkZ2F9z+hgbBQajkiGCJt08zgZBL25XUlGRKqsSiZi7tmYzvBffqXBIp EPK8sUZHAlNduiZGpEjjHqBYtqTSOaYQj5AV2SiLwGlY2vxuS5hzMdnBe+qxlIWlAZSZ mLBscdnBcZLvyLl1fgdWc/7bDgRkzQ6ubLNSl7KPsPxTL7Cuzlz/hwO90PxfOY0lc4tw WZZEQkqR+8UpZmKLTqQ1ms45Ex0iTVnpfK/jeL0YMeKSK7ZPS9krEYzNcdcuwefqAFt6 FlCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XBe5JCr9SbD0QuDTNeK15tbBZd12iQ8gOC4aC3WtUZk=; b=LLXc4CczJCsPEI931+JSiKSl56U0/57PTqNG+3OZsL1zTA4nCCJyB1wjSkvT5RCpw+ y6skFq1PpLk+ZwSTdA36t0A4x+hzhBcK77XXstT3SZFmDnCrYE/0iNZPzzBRdFNrw2Hc e+ywYW52HBVKoa118LguhP/cw/tkaoPTTCXLVtrkYq8Y/1Zp9KvtiHKDkSv4nlwdN86f AKPSTIzlK+n/6XDfDb7Fh0un719vksXMHKdsSZuqQhkC3ox2lJ/Wdzwj75ADkgd/3hjM 7BIfO6EKZUVp7wJeIFYKB+QbLi1/xbPRd/mCvFzEwpZ+qVkhsS78GqqbcZIMomHGyxeQ kk6A== X-Gm-Message-State: APjAAAUc2FCqHlCI5tpz5i8qsnex5w+J7z/P4OLQBzYLPFW6kga8RJnn Y+7fsPNMQA4V82JaqVzFQl3hAxUy X-Google-Smtp-Source: APXvYqxGkfwKh829fn5IrkuH4oUa1Lt4yeyf+WQc+A07s+ZW2TWJ9urmgQjqOrSJwvhSs0Ny6VQTKA== X-Received: by 2002:a5d:6709:: with SMTP id o9mr85867631wru.301.1564672851488; Thu, 01 Aug 2019 08:20:51 -0700 (PDT) Received: from godzilla.lym.embecosm-corp.com (cust64-dsl91-135-5.idnet.net. [91.135.5.64]) by smtp.gmail.com with ESMTPSA id 4sm164347794wro.78.2019.08.01.08.20.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 08:20:50 -0700 (PDT) From: Mark Corbin To: buildroot@buildroot.org Date: Thu, 1 Aug 2019 16:20:05 +0100 Message-Id: <20190801152005.12285-1-mark.corbin@embecosm.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] support/kconfig: fix compiler warnings by increasing buffer sizes X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Corbin Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When compiling kconfig with host gcc 8.3.0 several compiler '-Wformat-overflow=' warnings are generated. This is due to a number of temporary buffers used by sprintf being too small. The sizes of these buffers have been increased to remove the warnings. Signed-off-by: Mark Corbin --- support/kconfig/confdata.c | 4 ++-- support/kconfig/util.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/support/kconfig/confdata.c b/support/kconfig/confdata.c index 892da74fdc..6f40588a89 100644 --- a/support/kconfig/confdata.c +++ b/support/kconfig/confdata.c @@ -744,7 +744,7 @@ int conf_write(const char *name) struct menu *menu; const char *basename; const char *str; - char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; + char dirname[PATH_MAX+1], tmpname[PATH_MAX+23], newname[PATH_MAX+1]; char *env; if (!name) @@ -974,7 +974,7 @@ int conf_write_autoconf(void) const char *name; FILE *out, *tristate, *out_h; int i; - char dir[PATH_MAX+1], buf[PATH_MAX+1]; + char dir[PATH_MAX+1], buf[PATH_MAX+20]; char *s; strcpy(dir, conf_get_configname()); diff --git a/support/kconfig/util.c b/support/kconfig/util.c index 18a8e52391..d051fbea13 100644 --- a/support/kconfig/util.c +++ b/support/kconfig/util.c @@ -35,7 +35,7 @@ struct file *file_lookup(const char *name) int file_write_dep(const char *name) { char *str; - char buf[PATH_MAX+1], buf2[PATH_MAX+1], dir[PATH_MAX+1]; + char buf[PATH_MAX+13], buf2[PATH_MAX+1], dir[PATH_MAX+1]; struct symbol *sym, *env_sym; struct expr *e; struct file *file;