summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-07-30 06:52:33 +0000
committerEric Andersen <andersen@codepoet.org>2003-07-30 06:52:33 +0000
commiteef2317b9f5bdd362a7b8a0169c688245374f0f5 (patch)
tree81d07adf59a7dc21ee1f2c5063698b3ebbba5631 /util-linux
parenteac20451d240eb6cb4881578962de408f622b29b (diff)
downloadbusybox-w32-eef2317b9f5bdd362a7b8a0169c688245374f0f5.tar.gz
busybox-w32-eef2317b9f5bdd362a7b8a0169c688245374f0f5.tar.bz2
busybox-w32-eef2317b9f5bdd362a7b8a0169c688245374f0f5.zip
Ronny L Nilsson writes:
If BusyBox was compiled with -DCONFIG_FEATURE_CLEAN_UP dmesg command segfaults if invoked with the "-n" option. (Due to a free() of an uninitialized pointer).
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index 0c0d2d7c0..b7d17840f 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -28,7 +28,11 @@
28 28
29int dmesg_main(int argc, char **argv) 29int dmesg_main(int argc, char **argv)
30{ 30{
31 char *buf; 31 char *buf
32#ifdef CONFIG_FEATURE_CLEAN_UP
33 = NULL
34#endif
35 ;
32 int bufsize = 8196; 36 int bufsize = 8196;
33 int i, n; 37 int i, n;
34 int level = 0; 38 int level = 0;