linux-stable/scripts/kconfig
Masahiro Yamada ca6279d1a1 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:22:24 -04:00
..
lxdialog
tests
.gitignore
conf.c
confdata.c kconfig: fix failing to generate auto.conf 2022-02-23 12:00:01 +01:00
expr.c
expr.h
gconf-cfg.sh
gconf.c
gconf.glade
images.c
images.h
lexer.l kconfig: fix infinite loop when expanding a macro at the end of file 2024-03-26 18:22:24 -04:00
list.h
lkc.h
lkc_proto.h
Makefile
mconf-cfg.sh
mconf.c
menu.c
merge_config.sh
nconf-cfg.sh
nconf.c kconfig: nconf: stop endless search loops 2021-05-19 10:08:23 +02:00
nconf.gui.c
nconf.h
parser.y
preprocess.c kconfig: fix possible buffer overflow 2023-09-23 10:59:57 +02:00
qconf-cfg.sh
qconf.cc kconfig: qconf: fix signal connection to invalid slots 2020-08-26 10:41:04 +02:00
qconf.h
streamline_config.pl
symbol.c kconfig: fix memory leak from range properties 2023-12-13 18:18:10 +01:00
util.c