#49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
This commit is contained in:
@@ -24,7 +24,7 @@ extern char *xreadlink(const char *path)
|
||||
buf = xrealloc(buf, bufsize += GROWBY);
|
||||
readsize = readlink(path, buf, bufsize); /* 1st try */
|
||||
if (readsize == -1) {
|
||||
perror_msg("%s:%s", applet_name, path);
|
||||
perror_msg("%s", path);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@@ -34,4 +34,3 @@ extern char *xreadlink(const char *path)
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user