commit | 6e73ff1a31a430b00d9e5aa537dc08cbbe89bd2d | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Thu Dec 05 19:29:32 2013 -0800 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Thu Dec 05 19:29:32 2013 -0800 |
tree | ca782a6fa57f2cfd86264ff53b8030ccbb2a03b5 | |
parent | c9a87e6bbebd87691de435b1c4b2a456d073222d [diff] [blame] |
Issue #19881: Fix bad pickling of large bytes in cpickle.
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 @@ else if (self->proto >= 4) { header[0] = BINBYTES8; _write_size64(header + 1, size); - len = 8; + len = 9; } else { PyErr_SetString(PyExc_OverflowError,