Closed GoogleCodeExporter closed 9 years ago
Hmm, this should not be happening, and should not be pugixml related either.
Can you please check that it is not by adding strlen(data.c_str()) call (where
data is your string) before calling xml_document::load()? Valgrind should
report the strlen call as a problem.
It is possible that strlen on your target platform is optimized by reading
4-byte or even 16-byte chunks; this is safe, as long as the code is correct -
i.e. stops at first zero in branching decisions - but it would trigger valgrind
error.
Original comment by arseny.k...@gmail.com
on 7 Dec 2010 at 5:19
You were right. The strlen() just before xml_document::load() showed that the
problem is related to the char* containing the UTF8 encoded string. Thanks!
Original comment by dennis.l...@gmail.com
on 8 Dec 2010 at 7:30
Original comment by arseny.k...@gmail.com
on 9 Dec 2010 at 5:16
Original issue reported on code.google.com by
dennis.l...@gmail.com
on 7 Dec 2010 at 5:14