diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-26 08:07:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-26 08:07:36 (GMT) |
commit | d36d4e0d2b203a9e9202d619112a25dca5636d64 (patch) | |
tree | 318d5f3621d42a4037192fa697f6a695e1782ae9 /Modules/cPickle.c | |
parent | 93bfe7d860644595eaf2bd5c9bf7db31ee4a4201 (diff) | |
download | cpython-d36d4e0d2b203a9e9202d619112a25dca5636d64.zip cpython-d36d4e0d2b203a9e9202d619112a25dca5636d64.tar.gz cpython-d36d4e0d2b203a9e9202d619112a25dca5636d64.tar.bz2 |
Issue #13555: Fix an integer overflow check.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r-- | Modules/cPickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index e73bac1..d74ec5b 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -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; } |