Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6dc952 commit ba72320Copy full SHA for ba72320
1 file changed
Modules/pyexpat.c
@@ -835,7 +835,8 @@ xmlparse_Parse(xmlparseobject *self, PyObject *args)
835
s += MAX_CHUNK_SIZE;
836
slen -= MAX_CHUNK_SIZE;
837
}
838
- rc = XML_Parse(self->itself, s, slen, isFinal);
+ assert(MAX_CHUNK_SIZE < INT_MAX && slen < INT_MAX);
839
+ rc = XML_Parse(self->itself, s, (int)slen, isFinal);
840
841
done:
842
if (view.buf != NULL)
0 commit comments