projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac2045
)
Ronny L Nilsson writes:
author
Eric Andersen
<andersen@codepoet.org>
Wed, 30 Jul 2003 06:52:33 +0000
(06:52 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 30 Jul 2003 06:52:33 +0000
(06:52 -0000)
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).
util-linux/dmesg.c
patch
|
blob
|
history
diff --git
a/util-linux/dmesg.c
b/util-linux/dmesg.c
index
0c0d2d7
..
b7d1784
100644
(file)
--- a/
util-linux/dmesg.c
+++ b/
util-linux/dmesg.c
@@
-28,7
+28,11
@@
int dmesg_main(int argc, char **argv)
{
- char *buf;
+ char *buf
+#ifdef CONFIG_FEATURE_CLEAN_UP
+ = NULL
+#endif
+ ;
int bufsize = 8196;
int i, n;
int level = 0;