mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
parser: Use size_t when subtracting input buffer pointers
Avoid integer overflows.
This commit is contained in:
@@ -3875,7 +3875,7 @@ htmlCheckEncodingDirect(htmlParserCtxtPtr ctxt, const xmlChar *encoding) {
|
||||
(ctxt->input->buf->raw != NULL) &&
|
||||
(ctxt->input->buf->buffer != NULL)) {
|
||||
int nbchars;
|
||||
int processed;
|
||||
size_t processed;
|
||||
|
||||
/*
|
||||
* convert as much as possible to the parser reading buffer.
|
||||
|
||||
Reference in New Issue
Block a user