u-boot/scripts/kconfig
Masahiro Yamada 1414e09b4f kconfig: revert change that was not needed for -Wformat-security
Recent GCC versions warn if the format string is not a literal
because the compiler cannot check the argument validity at compile
time.

Commit 192bc6948b ("Fix GCC format-security errors and convert
sprintfs.") blindly replaced sprintf() with strcpy(), including
many cases where the format parameter is a string literal.

For the kconfig change:

    sprintf(header, "   ");

..., here the format parameter is a string literal "   ", so it is
definitely equivalent to:

    strcpy(header, "   ");

Of course, if the 'header' did not have enough length for containing
"   ", it would be a security problem, but another problem.  (in this
case, the 'header' is 4 byte length buffer, so it is not a problem at
all.)

The kconfig code is kept as synced with Linux as possible, but this
change made the code out-of-sync for nothing.  Just reverting.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-01-29 12:50:13 -05:00
..
lxdialog Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
.gitignore kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
check.sh kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
conf.c kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
confdata.c kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
expr.c kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
expr.h kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
gconf.c kconfig: sync with Linux 4.1 2015-07-27 15:01:53 -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
kxgettext.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
list.h kconfig: sync with Linux 4.1 2015-07-27 15:01:53 -04:00
lkc.h kconfig: sync with Linux 4.1 2015-07-27 15:01:53 -04:00
lkc_proto.h kconfig: sync with Linux 4.1 2015-07-27 15:01:53 -04:00
Makefile kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
mconf.c kconfig: revert change that was not needed for -Wformat-security 2018-01-29 12:50:13 -05:00
menu.c kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05: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.10 2017-02-12 14:31:25 -05:00
nconf.gui.c kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
nconf.h kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -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.10 2017-02-12 14:31:25 -05:00
symbol.c kconfig/symbol.c: use correct pointer type argument for sizeof 2017-11-20 20:18:36 -05:00
util.c kconfig: sync with Linux 4.1 2015-07-27 15:01:53 -04:00
zconf.gperf kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
zconf.hash.c_shipped kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
zconf.l kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
zconf.lex.c_shipped kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
zconf.tab.c_shipped kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
zconf.y kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00