zic(8) should exit the loop when the end of the string is reached due
to the call to error(). The problem found by doing fuzz testing. MFC after: 3 days
This commit is contained in:
parent
4244e63960
commit
4c075c0fb6
@ -1990,7 +1990,10 @@ register char * cp;
|
||||
else while ((*dp = *cp++) != '"')
|
||||
if (*dp != '\0')
|
||||
++dp;
|
||||
else error(_("odd number of quotation marks"));
|
||||
else {
|
||||
error(_("odd number of quotation marks"));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
} while (*cp != '\0' && *cp != '#' &&
|
||||
(!isascii(*cp) || !isspace((unsigned char) *cp)));
|
||||
if (isascii(*cp) && isspace((unsigned char) *cp))
|
||||
|
Loading…
x
Reference in New Issue
Block a user