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).
This commit is contained in:
@@ -28,7 +28,11 @@
|
|||||||
|
|
||||||
int dmesg_main(int argc, char **argv)
|
int dmesg_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *buf;
|
char *buf
|
||||||
|
#ifdef CONFIG_FEATURE_CLEAN_UP
|
||||||
|
= NULL
|
||||||
|
#endif
|
||||||
|
;
|
||||||
int bufsize = 8196;
|
int bufsize = 8196;
|
||||||
int i, n;
|
int i, n;
|
||||||
int level = 0;
|
int level = 0;
|
||||||
|
Reference in New Issue
Block a user