mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #13555: Fix an integer overflow check.
This commit is contained in:
parent
93bfe7d860
commit
d36d4e0d2b
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ readline_file(Unpicklerobject *self, char **s)
|
|||
return i + 1;
|
||||
}
|
||||
}
|
||||
if (self->buf_size < (PY_SSIZE_T_MAX >> 1)) {
|
||||
if (self->buf_size > (PY_SSIZE_T_MAX >> 1)) {
|
||||
PyErr_NoMemory();
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue