linux-stable/scripts/kconfig
Masahiro Yamada 3328ff75f6 kconfig: fix infinite loop when expanding a macro at the end of file
[ Upstream commit af8bbce920 ]

A macro placed at the end of a file with no newline causes an infinite
loop.

[Test Kconfig]
  $(info,hello)
  \ No newline at end of file

I realized that flex-provided input() returns 0 instead of EOF when it
reaches the end of a file.

Fixes: 104daea149 ("kconfig: reference environment variables directly and remove 'option env='")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:05 -04:00
..
lxdialog kconfig: menuconfig: simplify global jump key assignment 2023-07-25 00:59:32 +09:00
tests
.gitignore
Makefile kbuild: Show marked Kconfig fragments in "help" 2023-09-04 02:04:20 +09:00
conf.c
confdata.c kconfig: add warn-unknown-symbols sanity check 2023-09-01 16:38:04 +09:00
expr.c
expr.h kconfig: menuconfig: remove jump_key::index 2023-07-25 00:59:32 +09:00
gconf-cfg.sh
gconf.c kconfig: gconfig: correct program name in help text 2023-07-12 23:46:57 +09:00
gconf.glade
images.c
images.h
internal.h
lexer.l kconfig: fix infinite loop when expanding a macro at the end of file 2024-03-26 18:20:05 -04:00
list.h
lkc.h kconfig: menuconfig: simplify global jump key assignment 2023-07-25 00:59:32 +09:00
lkc_proto.h
mconf-cfg.sh
mconf.c kconfig: menuconfig: remove jump_key::index 2023-07-25 00:59:32 +09:00
menu.c kconfig: menuconfig: remove jump_key::index 2023-07-25 00:59:32 +09:00
merge_config.sh
nconf-cfg.sh
nconf.c kconfig: nconf: Add search jump feature 2023-08-13 21:29:41 +09:00
nconf.gui.c kconfig: nconf: Add search jump feature 2023-08-13 21:29:41 +09:00
nconf.h kconfig: nconf: Add search jump feature 2023-08-13 21:29:41 +09:00
parser.y
preprocess.c kconfig: fix possible buffer overflow 2023-09-06 02:00:02 +09:00
qconf-cfg.sh kconfig: port qconf to work with Qt6 in addition to Qt5 2023-08-16 12:06:29 +09:00
qconf.cc kconfig: port qconf to work with Qt6 in addition to Qt5 2023-08-16 12:06:29 +09:00
qconf.h
streamline_config.pl
symbol.c kconfig: fix memory leak from range properties 2023-12-13 18:45:00 +01:00
util.c