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 faa7f11 commit 9544fc5Copy full SHA for 9544fc5
1 file changed
Modules/pyexpat.c
@@ -585,7 +585,8 @@ conv_content_model(XML_Content * const model,
585
int i;
586
587
if (children != NULL) {
588
- for (i = 0; i < model->numchildren; ++i) {
+ assert(model->numchildren < INT_MAX);
589
+ for (i = 0; i < (int)model->numchildren; ++i) {
590
PyObject *child = conv_content_model(&model->children[i],
591
conv_string);
592
if (child == NULL) {
0 commit comments