u-boot/scripts/kconfig
Luis Araneda 0dc4addb91 kconfig: Avoid format overflow warning from GCC 8.1
cherry-pick kernel commit 2ae89c7 (2018-06-05)
to avoid warnings when compiling with GCC 8.1

In file included from scripts/kconfig/zconf.tab.c:2486:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:771:22: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  sprintf(newname, "%s%s", dirname, basename);
                      ^~
scripts/kconfig/confdata.c:771:19: note: assuming directive output of 7 bytes
  sprintf(newname, "%s%s", dirname, basename);
                   ^~~~~~
scripts/kconfig/confdata.c:771:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097
  sprintf(newname, "%s%s", dirname, basename);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:774:23: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
                       ^~~~~~~~~~~
scripts/kconfig/confdata.c:774:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097
   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-07-25 08:47:52 +09:00
..
lxdialog kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
tests kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
.gitignore kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
check.sh kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
conf.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
confdata.c kconfig: Avoid format overflow warning from GCC 8.1 2018-07-25 08:47:52 +09:00
expr.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
expr.h kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
gconf.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
gconf.glade kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
images.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
kconf_id.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
kxgettext.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
list.h kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
lkc_proto.h kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
lkc.h kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
Makefile kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
mconf.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
menu.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
merge_config.sh kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
nconf.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
nconf.gui.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
nconf.h kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
POTFILES.in kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
qconf.cc kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
qconf.h kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
streamline_config.pl kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
symbol.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
util.c kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
zconf.l kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
zconf.y kconfig: re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00