Skip to content

Commit

Permalink
string.c (search_nonascii): prevent buffer overrun; ref #6255
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Apr 29, 2024
1 parent 714ef4c commit fa213a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/string.c
Expand Up @@ -332,6 +332,7 @@ search_nonascii(const char *p, const char *e)
case 2: if (NOASCII(*p)) return p; ++p;
case 1: if (NOASCII(*p)) return p; ++p;
if (NOASCII(*p)) return p;
case 0: break;
}
return e;
}
Expand Down

0 comments on commit fa213a2

Please sign in to comment.