cast difference between pointers as unsigned in kore_mem_find()

This commit is contained in:
Matt Thompson 2016-03-21 23:30:28 +00:00
parent fb6512259c
commit 61eaaccd30
1 changed files with 1 additions and 1 deletions

View File

@ -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))