Commit baada5ed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_strcasestr(): fix infinite loop an invalid haystack

Pointed-out-by: default avatarEdward Wang <edward.c.wang@compdigitec.com>
parent 591633b7
...@@ -237,7 +237,7 @@ char *vlc_strcasestr (const char *haystack, const char *needle) ...@@ -237,7 +237,7 @@ char *vlc_strcasestr (const char *haystack, const char *needle)
s = vlc_towc (haystack, &(uint32_t) { 0 }); s = vlc_towc (haystack, &(uint32_t) { 0 });
haystack += s; haystack += s;
} }
while (s != 0); while (s > 0);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment