summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-07 18:04:12 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-07 18:04:12 (GMT)
commit8dba727ce8e3a42bc226ee9b8ba1f428c739a109 (patch)
treec3bd76463d980def4325b7034e31ff5dcd3cba11 /Modules
parenta507072e54fcbfeaefce51e552221df856671237 (diff)
downloadcpython-8dba727ce8e3a42bc226ee9b8ba1f428c739a109.zip
cpython-8dba727ce8e3a42bc226ee9b8ba1f428c739a109.tar.gz
cpython-8dba727ce8e3a42bc226ee9b8ba1f428c739a109.tar.bz2
Merged revisions 77352-77354 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77352 | antoine.pitrou | 2010-01-07 18:46:49 +0100 (jeu., 07 janv. 2010) | 5 lines Issue #7455: Fix possible crash in cPickle on invalid input. Patch by Florent Xicluna. ........ r77353 | antoine.pitrou | 2010-01-07 18:49:37 +0100 (jeu., 07 janv. 2010) | 3 lines Fix attribution. Florent actually repackaged and reviewed Victor's patch (sorry!). ........ r77354 | antoine.pitrou | 2010-01-07 18:54:10 +0100 (jeu., 07 janv. 2010) | 3 lines Fix reattribution mistake when fixing attribution mistake! ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cPickle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 4e53ae6..331fca2 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -4033,7 +4033,7 @@ load_pop(Unpicklerobject *self)
*/
if (self->num_marks > 0 && self->marks[self->num_marks - 1] == len) {
self->num_marks--;
- } else if (len >= 0) {
+ } else if (len > 0) {
len--;
Py_DECREF(self->stack->data[len]);
self->stack->length = len;