Skip to content
Snippets Groups Projects
Commit 952f0a6a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

msxml3: Fix invalid read before allocated block (Valgrind).

parent 8e1755aa
Branches
Tags
No related merge requests found
......@@ -534,8 +534,8 @@ static inline xmlChar* trim_whitespace(xmlChar* str)
while (*ret && isspace(*ret))
++ret;
len = xmlStrlen(ret);
while (isspace(ret[len-1]))
--len;
if (len)
while (isspace(ret[len-1])) --len;
ret = xmlStrndup(ret, len);
xmlFree(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment