Hello!

htmlCheckEncoding has missing input->end update, so when buffer is relocated it 
could parse html data twice. A program that reproduces that case is attached.

It's weird it copies memory buffer though. Maybe we should mark buffer that are 
not supposed to shrink/grow with a flag?

Attachment: Fix-double-parsing-when-buffer-changes-its-base-in-htmlCheckEncoding.patch
Description: Binary data

Attachment: double_parsing_repro.c
Description: Binary data

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to