linux-stable/scripts/kconfig
Masahiro Yamada 87ddba29e7 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:02 -04:00
..
lxdialog
tests kconfig: tests: remove randconfig test for choice in choice 2020-05-12 13:28:30 +09:00
.gitignore kconfig: qconf: compile moc object separately 2020-08-01 20:54:39 +09:00
Makefile Revert "kconfig: remove 'kvmconfig' and 'xenconfig' shorthands" 2021-01-23 16:03:57 +01:00
conf.c kconfig: Add yes2modconfig and mod2yesconfig targets. 2020-01-07 02:18:45 +09:00
confdata.c kconfig: fix failing to generate auto.conf 2022-02-23 12:01:07 +01:00
expr.c kconfig: distinguish between dependencies and visibility in help text 2020-01-07 02:18:45 +09:00
expr.h kconfig: distinguish between dependencies and visibility in help text 2020-01-07 02:18:45 +09:00
gconf-cfg.sh
gconf.c kconfig: fix an "implicit declaration of function" warning 2020-01-10 02:44:54 +09:00
gconf.glade
images.c kconfig: constify XPM data 2020-08-14 13:30:03 +09:00
images.h kconfig: constify XPM data 2020-08-14 13:30:03 +09:00
lexer.l kconfig: fix infinite loop when expanding a macro at the end of file 2024-03-26 18:22:02 -04:00
list.h
lkc.h kconfig: qconf: fix incomplete type 'struct gstr' warning 2020-09-20 12:58:49 +09:00
lkc_proto.h kconfig: qconf: fix incomplete type 'struct gstr' warning 2020-09-20 12:58:49 +09:00
mconf-cfg.sh kconfig: be more helpful if pkg-config is missing 2019-11-11 20:10:01 +09:00
mconf.c kconfig: fix an "implicit declaration of function" warning 2020-01-10 02:44:54 +09:00
menu.c kconfig: do not assign a variable in the return statement 2020-05-12 13:28:30 +09:00
merge_config.sh
nconf-cfg.sh kconfig: be more helpful if pkg-config is missing 2019-11-11 20:10:01 +09:00
nconf.c kconfig: nconf: stop endless search loops 2021-05-19 10:12:56 +02:00
nconf.gui.c
nconf.h
parser.y kconfig: allow only 'config', 'comment', and 'if' inside 'choice' 2020-05-12 13:28:30 +09:00
preprocess.c kconfig: fix possible buffer overflow 2023-09-19 12:20:25 +02:00
qconf-cfg.sh
qconf.cc kconfig: qconf: create QApplication after option checks 2020-09-25 00:37:13 +09:00
qconf.h kconfig: qconf: remove Y, M, N columns 2020-09-25 00:37:13 +09:00
streamline_config.pl kconfig: streamline_config.pl: check defined(ENV variable) before using it 2020-09-03 12:16:30 +09:00
symbol.c kconfig: fix memory leak from range properties 2023-12-13 18:26:56 +01:00
util.c