diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2013-12-06 03:29:32 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2013-12-06 03:29:32 (GMT) |
commit | 6e73ff1a31a430b00d9e5aa537dc08cbbe89bd2d (patch) | |
tree | ca782a6fa57f2cfd86264ff53b8030ccbb2a03b5 /Modules | |
parent | c9a87e6bbebd87691de435b1c4b2a456d073222d (diff) | |
download | cpython-6e73ff1a31a430b00d9e5aa537dc08cbbe89bd2d.zip cpython-6e73ff1a31a430b00d9e5aa537dc08cbbe89bd2d.tar.gz cpython-6e73ff1a31a430b00d9e5aa537dc08cbbe89bd2d.tar.bz2 |
Issue #19881: Fix bad pickling of large bytes in cpickle.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index c8afa8e..330b17d 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -2027,7 +2027,7 @@ save_bytes(PicklerObject *self, PyObject *obj) else if (self->proto >= 4) { header[0] = BINBYTES8; _write_size64(header + 1, size); - len = 8; + len = 9; } else { PyErr_SetString(PyExc_OverflowError, |