Commit 3abf4ffb authored by Nikias Bassen's avatar Nikias Bassen

xplist: Make sure to not parse for entities in empty strings

parent 02e9c0a5
......@@ -633,7 +633,7 @@ static int unescape_entities(char *str, size_t *length)
{
size_t i = 0;
size_t len = *length;
while (i < len-1) {
while (len > 0 && i < len-1) {
if (str[i] == '&') {
char *entp = str + i + 1;
while (i < len && str[i] != ';') {
......
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