]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len
authorMartin Walch <walch.martin@web.de>
Thu, 3 Oct 2013 16:35:16 +0000 (18:35 +0200)
committerJiri Slaby <jslaby@suse.cz>
Mon, 9 Feb 2015 09:17:19 +0000 (10:17 +0100)
commit1c2c26279c864adb131e0978556b2cfdc9ecabac
tree348157e406738bafacc040ec97c5a489996ff2f0
parentc6662b96d3b81695d2eafa518e0dce7fa35ba30f
kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len

commit 503c823048e81cc85c0e9d8c297cc70203e335e5 upstream.

The struct gstr has a capacity that may differ from the actual string length.

However, a string manipulation in the function search_conf made the assumption
that it is the same, which led to messing up some search results, especially
when the content of the gstr in use had not yet reached at least 63 chars.

Signed-off-by: Martin Walch <walch.martin@web.de>
Acked-by: Wang YanQing <udknight@gmail.com>
Acked-by: Benjamin Poirier <bpoirier@suse.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
scripts/kconfig/menu.c