mirror of https://git.kore.io/kore.git
cast difference between pointers as unsigned in kore_mem_find()
This commit is contained in:
parent
fb6512259c
commit
61eaaccd30
|
@ -491,7 +491,7 @@ kore_mem_find(void *src, size_t slen, void *needle, u_int32_t len)
|
|||
if (*p != *(u_int8_t *)needle)
|
||||
continue;
|
||||
|
||||
if ((end - p) < len)
|
||||
if ((u_int32_t)(end - p) < len)
|
||||
return (NULL);
|
||||
|
||||
if (!memcmp(p, needle, len))
|
||||
|
|
Loading…
Reference in New Issue