[BusyBox-cvs] busybox/util-linux dmesg.c,1.30,1.31
Erik Andersen
andersen at busybox.net
Wed Jul 30 06:52:37 UTC 2003
Update of /var/cvs/busybox/util-linux
In directory winder:/tmp/cvs-serv20236/util-linux
Modified Files:
dmesg.c
Log Message:
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).
Index: dmesg.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/dmesg.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- dmesg.c 22 Jul 2003 08:56:55 -0000 1.30
+++ dmesg.c 30 Jul 2003 06:52:33 -0000 1.31
@@ -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;
More information about the busybox-cvs
mailing list