mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-09 04:58:16 +03:00
parser: Fix 'consumed' accounting when switching encodings
This commit is contained in:
parent
c93679381c
commit
691a771956
@ -1109,6 +1109,7 @@ xmlSwitchInputEncodingInt(xmlParserCtxtPtr ctxt, xmlParserInputPtr input,
|
||||
*/
|
||||
processed = input->cur - input->base;
|
||||
xmlBufShrink(in->buffer, processed);
|
||||
input->consumed += processed;
|
||||
in->raw = in->buffer;
|
||||
in->buffer = xmlBufCreate();
|
||||
in->rawconsumed = processed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user