Hi,
I have found small bug in mconf, when you run it without any argument it
will sigsegv.
Without patch:
$ scripts/kconfig/mconf
Segmentation fault
With patch:
$ scripts/kconfig/mconf
can't find file (null)
Signed-off-by: Marcin Garski <[EMAIL PROTECTED]>
--
Best Regards
Marcin Garski
diff -urp linux-2.6.21.1.orig/scripts/kconfig/lex.zconf.c_shipped
linux-2.6.21.1/scripts/kconfig/lex.zconf.c_shipped
--- linux-2.6.21.1.orig/scripts/kconfig/lex.zconf.c_shipped 2007-04-27
23:49:26.000000000 +0200
+++ linux-2.6.21.1/scripts/kconfig/lex.zconf.c_shipped 2007-05-05
22:35:35.000000000 +0200
@@ -2264,7 +2264,7 @@ FILE *zconf_fopen(const char *name)
FILE *f;
f = fopen(name, "r");
- if (!f && name[0] != '/') {
+ if (!f && name != NULL && name[0] != '/') {
env = getenv(SRCTREE);
if (env) {
sprintf(fullname, "%s/%s", env, name);
diff -urp linux-2.6.21.1.orig/scripts/kconfig/zconf.l
linux-2.6.21.1/scripts/kconfig/zconf.l
--- linux-2.6.21.1.orig/scripts/kconfig/zconf.l 2007-04-27 23:49:26.000000000
+0200
+++ linux-2.6.21.1/scripts/kconfig/zconf.l 2007-05-05 22:35:24.000000000
+0200
@@ -265,7 +265,7 @@ FILE *zconf_fopen(const char *name)
FILE *f;
f = fopen(name, "r");
- if (!f && name[0] != '/') {
+ if (!f && name != NULL && name[0] != '/') {
env = getenv(SRCTREE);
if (env) {
sprintf(fullname, "%s/%s", env, name);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kbuild-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel