linux-uconsole/scripts/kconfig
Ben Hutchings 98b75ef9c1 kconfig: Avoid buffer underrun in choice input
commit 3ba4162115 upstream.

Commit 40aee729b3 ('kconfig: fix default value for choice input')
fixed some cases where kconfig would select the wrong option from a
choice with a single valid option and thus enter an infinite loop.

However, this broke the test for user input of the form 'N?', because
when kconfig selects the single valid option the input is zero-length
and the test will read the byte before the input buffer.  If this
happens to contain '?' (as it will in a mips build on Debian unstable
today) then kconfig again enters an infinite loop.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-09 15:54:49 -07:00
..
lxdialog kconfig: variable argument lists needs `stdarg.h' 2009-07-17 23:05:05 +02:00
.gitignore gitignore: ignore Kconfig i18n files 2009-06-09 22:37:47 +02:00
check.sh kbuild: check if we can link gettext not just compile 2007-10-12 21:13:50 +02:00
conf.c kconfig: Avoid buffer underrun in choice input 2011-05-09 15:54:49 -07:00
confdata.c kbuild: add static to prototypes 2009-09-20 12:27:44 +02:00
expr.c kbuild: add static to prototypes 2009-09-20 12:27:44 +02:00
expr.h kconfig: struct property commented 2009-01-02 20:43:21 +01:00
gconf.c kconfig: make use of menu_get_ext_help in gconfig 2009-09-20 12:27:42 +02:00
gconf.glade gconfig: disable "typeahead find" search in treeviews 2009-09-20 12:27:43 +02:00
images.c
kconfig_load.c
kxgettext.c kbuild: add static to prototypes 2009-09-20 12:27:44 +02:00
lex.zconf.c_shipped kconfig: Mark various internal functions static 2009-11-15 15:00:16 -08:00
lkc.h kconfig: do not hardcode "include/config/auto.conf" filename 2009-06-09 22:37:51 +02:00
lkc_proto.h kconfig: add menu_get_ext_help function to display more information 2009-09-20 12:27:41 +02:00
Makefile kconfig: Fix make O=<dir> local{mod,yes}config 2009-11-20 09:45:55 -05:00
mconf.c kconfig: make use of menu_get_ext_help in menuconfig 2009-09-20 12:27:41 +02:00
menu.c kbuild: add static to prototypes 2009-09-20 12:27:44 +02:00
POTFILES.in kconfig: gettext support for lxdialog 2008-01-28 23:14:39 +01:00
qconf.cc kconfig: make use of menu_get_ext_help in qconfig 2009-09-20 12:27:41 +02:00
qconf.h kconfig/xconfig: sync main view with search dialog current menu 2007-05-02 20:58:08 +02:00
streamline_config.pl kconfig: Fix make O=<dir> local{mod,yes}config 2009-11-20 09:45:55 -05:00
symbol.c kbuild: add static to prototypes 2009-09-20 12:27:44 +02:00
util.c kconfig: do not hardcode "include/config/auto.conf" filename 2009-06-09 22:37:51 +02:00
zconf.gperf kconfig: Mark various internal functions static 2009-11-15 15:00:16 -08:00
zconf.hash.c_shipped kconfig: Mark various internal functions static 2009-11-15 15:00:16 -08:00
zconf.l kconfig: Mark various internal functions static 2009-11-15 15:00:16 -08:00
zconf.tab.c_shipped kconfig: Mark various internal functions static 2009-11-15 15:00:16 -08:00
zconf.y kconfig: Mark various internal functions static 2009-11-15 15:00:16 -08:00