Fixes false positive Clang (4.0.1) Static Analyzer warning (issue #9)
as a side-effect.
#126 #127 Windows: Fix compilation for Visual Studio 2012
#129 examples: Fix compilation for XML_UNICODE_WCHAR_T
#130 benchmark: Fix compilation for XML_UNICODE_WCHAR_T
- xmlwf: Address Clang Static Analyzer warning
+ #9 Address two Clang Static Analyzer false positives
Special thanks to:
Benbuck Nason
return XML_CONVERT_OUTPUT_EXHAUSTED;
(*fromP)++;
}
- do {
- *(*toP)++ = *utf8++;
- } while (--n != 0);
+ memcpy(*toP, utf8, n);
+ *toP += n;
}
}