Revert "Prevent overflow beyond the end of string in skip_space()"
This reverts commit e757b43bcf.
This commit is contained in:
@@ -2251,7 +2251,6 @@ skip_space(struct table *t, char *line, struct table_linfo *linfo,
|
|||||||
Str prevchar = linfo->prevchar;
|
Str prevchar = linfo->prevchar;
|
||||||
int w = linfo->length;
|
int w = linfo->length;
|
||||||
int min = 1;
|
int min = 1;
|
||||||
char *linez;
|
|
||||||
|
|
||||||
if (*line == '<' && line[strlen(line) - 1] == '>') {
|
if (*line == '<' && line[strlen(line) - 1] == '>') {
|
||||||
if (checkminimum)
|
if (checkminimum)
|
||||||
@@ -2259,8 +2258,7 @@ skip_space(struct table *t, char *line, struct table_linfo *linfo,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
linez = line + strlen(line);
|
while (*line) {
|
||||||
while (line < linez) {
|
|
||||||
char *save = line, *c = line;
|
char *save = line, *c = line;
|
||||||
int ec, len, wlen, plen;
|
int ec, len, wlen, plen;
|
||||||
ctype = get_mctype(line);
|
ctype = get_mctype(line);
|
||||||
|
|||||||
Reference in New Issue
Block a user