From: Andrej Gelenberg <andrej.gelenberg@udo.edu>
To: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] nconfig: Fix segfault when menu is empty
Date: Mon, 02 Aug 2010 11:59:31 +0200 [thread overview]
Message-ID: <4C569703.9010607@udo.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Hi,
there is a small bug in nconf, which cause segfault in empty menus
(press right arrow in empty menu). Patch is attached.
Regards,
Andrej Gelenberg
[-- Attachment #2: 0001-nconfig-Fix-segfault-when-menu-is-empty.patch --]
[-- Type: text/plain, Size: 800 bytes --]
From 60265c2f3db2616d3dc493785a47a301f73419bd Mon Sep 17 00:00:00 2001
From: Andrej Gelenberg <andrej.gelenberg@udo.edu>
Date: Mon, 2 Aug 2010 11:41:36 +0200
Subject: [PATCH] nconfig: Fix segfault when menu is empty
nconf crush with segfault if press right arrow in empty menu.
Signed-off-by: Andrej Gelenberg <andrej.gelenberg@udo.edu>
---
scripts/kconfig/nconf.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 762caf8..3db3ca6 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -676,6 +676,7 @@ static void *item_data(void)
struct mitem *mcur;
cur = current_item(curses_menu);
+ if ( ! cur ) return NULL;
mcur = (struct mitem *) item_userptr(cur);
return mcur->usrptr;
--
1.7.2.1
WARNING: multiple messages have this Message-ID (diff)
From: Andrej Gelenberg <andrej.gelenberg@udo.edu>
To: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] nconfig: Fix segfault when menu is empty
Date: Mon, 02 Aug 2010 11:59:31 +0200 [thread overview]
Message-ID: <4C569703.9010607@udo.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Hi,
there is a small bug in nconf, which cause segfault in empty menus
(press right arrow in empty menu). Patch is attached.
Regards,
Andrej Gelenberg
[-- Attachment #2: 0001-nconfig-Fix-segfault-when-menu-is-empty.patch --]
[-- Type: text/plain, Size: 801 bytes --]
>From 60265c2f3db2616d3dc493785a47a301f73419bd Mon Sep 17 00:00:00 2001
From: Andrej Gelenberg <andrej.gelenberg@udo.edu>
Date: Mon, 2 Aug 2010 11:41:36 +0200
Subject: [PATCH] nconfig: Fix segfault when menu is empty
nconf crush with segfault if press right arrow in empty menu.
Signed-off-by: Andrej Gelenberg <andrej.gelenberg@udo.edu>
---
scripts/kconfig/nconf.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index 762caf8..3db3ca6 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -676,6 +676,7 @@ static void *item_data(void)
struct mitem *mcur;
cur = current_item(curses_menu);
+ if ( ! cur ) return NULL;
mcur = (struct mitem *) item_userptr(cur);
return mcur->usrptr;
--
1.7.2.1
next reply other threads:[~2010-08-02 10:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 9:59 Andrej Gelenberg [this message]
2010-08-02 9:59 ` [PATCH] nconfig: Fix segfault when menu is empty Andrej Gelenberg
2010-08-12 22:28 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C569703.9010607@udo.edu \
--to=andrej.gelenberg@udo.edu \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.