Commit adee869f 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>
(cherry picked from commit baada5eddfe86431037950fda5c27812ea9dacca)
parent e2cec4bc
......@@ -336,7 +336,7 @@ char *vlc_strcasestr (const char *haystack, const char *needle)
s = vlc_towc (haystack, &(uint32_t) { 0 });
haystack += s;
}
while (s != 0);
while (s > 0);
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