mirror of https://github.com/mirror/busybox.git
fixdep: avoid underflow when end of entry doesn't coincide with EOF
Bug: https://bugs.gentoo.org/893776 Closes: https://bugs.busybox.net/show_bug.cgi?id=15326 Signed-off-by: Arsen Arsenović <arsen@gentoo.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>pull/82/head
parent
029740a3e4
commit
2d4a3d9e6c
|
@ -338,6 +338,11 @@ void parse_dep_file(void *map, size_t len)
|
|||
do p--; while (!isalnum((unsigned char)*p));
|
||||
p++;
|
||||
}
|
||||
if (p < m) {
|
||||
/* we've consumed the last filename of this list
|
||||
already. */
|
||||
break;
|
||||
}
|
||||
memcpy(s, m, p-m); s[p-m] = 0;
|
||||
if (strrcmp(s, "include/autoconf.h") &&
|
||||
strrcmp(s, "arch/um/include/uml-config.h") &&
|
||||
|
|
Loading…
Reference in New Issue