Commit ba9716a1978001d5a7560cfcf46fe4846c36bbc0

Raul Hudea 2010-03-15T10:13:29

ChunkParser: Incorrect decoding of small xml files if encoding was autodetected, in xmlParseChunk, if initial size is 86 (a chunk in UTF-16 encoding), the code that tries to read only the first line will set the size to 90, which eventually leads to a memmove of 90 bytes (in xmlBufferAdd) which will copy extra random memory bytes, which will make the parser to fail because of these extra bytes.