mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Avoid reading outside the provided range
This commit is contained in:
parent
d957ca1274
commit
7dcca32ff1
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ const char *string_pool_substr(const char *s, const char *t)
|
|||
}
|
||||
|
||||
const char *string_pool_substr_strip(const char *s, const char *t) {
|
||||
while (isspace((int) (unsigned char) *s))
|
||||
while (s < t && isspace((int) (unsigned char) *s))
|
||||
s++;
|
||||
while (t > s && isspace((int) (unsigned char) *(t - 1)))
|
||||
t--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue