Line 0
Link Here
|
|
|
1 |
https://gitlab.gnome.org/GNOME/libxml2/commit/7a1bd7f6497ac33a9023d556f6f47a48f01deac0 |
2 |
|
3 |
--- /HTMLparser.c |
4 |
+++ /HTMLparser.c |
5 |
@@ -3635,7 +3635,7 @@ |
6 |
*/ |
7 |
processed = ctxt->input->cur - ctxt->input->base; |
8 |
xmlBufShrink(ctxt->input->buf->buffer, processed); |
9 |
- nbchars = xmlCharEncInput(ctxt->input->buf, 0); |
10 |
+ nbchars = xmlCharEncInput(ctxt->input->buf, 1); |
11 |
if (nbchars < 0) { |
12 |
htmlParseErr(ctxt, XML_ERR_INVALID_ENCODING, |
13 |
"htmlCheckEncoding: encoder error\n", |
14 |
--- /parserInternals.c |
15 |
+++ /parserInternals.c |
16 |
@@ -1214,7 +1214,7 @@ |
17 |
/* |
18 |
* convert as much as possible of the buffer |
19 |
*/ |
20 |
- nbchars = xmlCharEncInput(input->buf, 0); |
21 |
+ nbchars = xmlCharEncInput(input->buf, 1); |
22 |
} else { |
23 |
/* |
24 |
* convert just enough to get |
25 |
--- /xmlIO.c |
26 |
+++ /xmlIO.c |
27 |
@@ -3157,7 +3157,7 @@ |
28 |
* convert as much as possible to the parser reading buffer. |
29 |
*/ |
30 |
use = xmlBufUse(in->raw); |
31 |
- nbchars = xmlCharEncInput(in, 0); |
32 |
+ nbchars = xmlCharEncInput(in, 1); |
33 |
if (nbchars < 0) { |
34 |
xmlIOErr(XML_IO_ENCODER, NULL); |
35 |
in->error = XML_IO_ENCODER; |
36 |
@@ -3273,7 +3273,7 @@ |
37 |
* convert as much as possible to the parser reading buffer. |
38 |
*/ |
39 |
use = xmlBufUse(in->raw); |
40 |
- nbchars = xmlCharEncInput(in, 0); |
41 |
+ nbchars = xmlCharEncInput(in, 1); |
42 |
if (nbchars < 0) { |
43 |
xmlIOErr(XML_IO_ENCODER, NULL); |
44 |
in->error = XML_IO_ENCODER; |