aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-23 12:24:25 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-23 12:24:25 +0200
commitb4b0378358fb3d46c4f483effb6ee957857b06c5 (patch)
tree7d65203bfa74271ea7f33b40efb8eba65d751e3b /scripts
parent8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194 (diff)
downloadlinux-conf-perf-b4b0378358fb3d46c4f483effb6ee957857b06c5.tar.gz
linux-conf-perf-b4b0378358fb3d46c4f483effb6ee957857b06c5.tar.bz2
linux-conf-perf-b4b0378358fb3d46c4f483effb6ee957857b06c5.zip
parse_kconfig: fix SIGSEGV caused by uninitialized memory
Diffstat (limited to 'scripts')
-rw-r--r--scripts/parse_kconfig/parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/parse_kconfig/parse.c b/scripts/parse_kconfig/parse.c
index 7d6bf3f..0ac99f9 100644
--- a/scripts/parse_kconfig/parse.c
+++ b/scripts/parse_kconfig/parse.c
@@ -97,7 +97,8 @@ void cpy_dep() {
Iprintf("Direct:\n");
if (verbose_level > 2)
cnf_printf(el->be);
- }
+ } else
+ el->be = NULL;
if (sym->rev_dep.expr != NULL) {
if (verbose_level > 3)
printf_original(gsymlist, sym->rev_dep.expr);
@@ -106,7 +107,8 @@ void cpy_dep() {
Iprintf("Revers:\n");
if (verbose_level > 2)
cnf_printf(el->re_be);
- }
+ } else
+ el->re_be = NULL;
}
}
}