List of commits:
Subject Hash Author Date (UTC)
Fix spurious MemoryError introduced by PR #886. (#930) 06bb4873d6a9ac303701d08a851d6cd9a51e02a3 T. Wouters 2017-03-31 17:10:19
bpo-29941: Assert fixes (#886) a00c3fd12d421e41b769debd7df717d17b0deed5 T. Wouters 2017-03-31 16:14:41
suppress compiler warnings in _ctypes_test (#902) 164d30eb1e66575dafee6af4fca4cbf52c7fbe6a Benjamin Peterson 2017-03-31 11:05:25
bpo-29952: Use usual terminology of dict (GH-917) cdcac039fb447f2ab04efcacbe663751bb2cb4ec cocoatomo 2017-03-31 05:48:49
Remove catching OSError in ftphandler test. Only URLError is raised in urllib.request module. (#918) ed3dd1c02af6872bd0748f7b9a5dadb89f7b830f Senthil Kumaran 2017-03-31 05:43:05
bpo-29928: Add f-string to the Glossary (GH-864) 33db068dac7686e37736f7ecf8abb2aee0345cf2 Mariatta 2017-03-30 19:12:18
bpo-29946: Fix "sqrtpi defined but not used" (#908) 7a26464c6496c29244072fdd80f9b92c68174742 Louie Lu 2017-03-30 17:05:10
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889) 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14 T. Wouters 2017-03-30 16:58:35
bpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550) 06e522521c06671b4559eecf9e2a185c2d62c141 Serhiy Storchaka 2017-03-30 16:09:08
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887) d4edfc9abffca965e76ebc5957a92031a4d6c4d4 Serhiy Storchaka 2017-03-30 15:29:23
bpo-29204: Emit warnings for already deprecated ElementTree features. (#773) 762ec97ea68a1126b8855996c61fa8239dc9fff7 Serhiy Storchaka 2017-03-30 15:12:06
bpo-29887: Test normalization now fails if download fails (#905) 722a3af092b94983aa26f5e591fb1b45e2c2a0ff Victor Stinner 2017-03-30 15:06:53
bpo-20548: Use specific asserts in warnings and exceptions tests (#788) f15c4d374a07c576c0e8349b16604f6dbad0b953 Serhiy Storchaka 2017-03-30 15:05:08
bpo-29913: deprecate compare_networks() in documentation (GH-865) 16f852345bcdec1bbb15e5363fad6b33bf960912 s-sanjay 2017-03-30 07:44:29
bpo-29918: Add missed "const" modifiers in C API documentation. (#846) 84b8e92e463bd6a5174bd3e5a6543580f6319c57 Serhiy Storchaka 2017-03-30 07:01:03
bpo-27863: Fixed multiple crashes in ElementTree. (#765) 576def096ec7b64814e038f03290031f172886c3 Serhiy Storchaka 2017-03-30 06:47:31
bpo-29816: Shift operation now has less opportunity to raise OverflowError. (#680) 918403cfc3304d27e80fb792357f40bb3ba69c4e Serhiy Storchaka 2017-03-30 06:47:07
bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716) 762bf40438a572a398e500c74e38f9894ea20a45 Serhiy Storchaka 2017-03-30 06:15:31
bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502) ea720fe7e99d68924deab38de955fe97f87e2b29 Serhiy Storchaka 2017-03-30 06:12:31
bpo-24821: Fixed the slowing down to 25 times in the searching of some (#505) 0a58f72762353768c7d26412e627ff196aac6c4e Serhiy Storchaka 2017-03-30 06:11:10
Commit 06bb4873d6a9ac303701d08a851d6cd9a51e02a3 - Fix spurious MemoryError introduced by PR #886. (#930)
Fix MemoryError caused by moving around code in PR #886; nbytes was sometimes used unitinitalized (in non-debug builds, when use_calloc was false and elsize was 0).
Author: T. Wouters
Author date (UTC): 2017-03-31 17:10
Committer name: GitHub
Committer date (UTC): 2017-03-31 17:10
Parent(s): a00c3fd12d421e41b769debd7df717d17b0deed5
Signer:
Signing key:
Signing status: N
Tree: 9702ec5165c8b180226b8932566137873709c7d9
File Lines added Lines deleted
Objects/obmalloc.c 4 4
File Objects/obmalloc.c changed (mode: 100644) (index f284d9fc0a..32e7ecbe1e)
... ... _PyObject_Alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize)
1227 1227
1228 1228 _Py_AllocatedBlocks++; _Py_AllocatedBlocks++;
1229 1229
1230 if (nelem == 0 || elsize == 0)
1231 goto redirect;
1232
1233 assert(nelem <= PY_SSIZE_T_MAX / elsize);
1230 assert(elsize == 0 || nelem <= PY_SSIZE_T_MAX / elsize);
1234 1231 nbytes = nelem * elsize; nbytes = nelem * elsize;
1235 1232
1236 1233 #ifdef WITH_VALGRIND #ifdef WITH_VALGRIND
 
... ... _PyObject_Alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize)
1240 1237 goto redirect; goto redirect;
1241 1238 #endif #endif
1242 1239
1240 if (nelem == 0 || elsize == 0)
1241 goto redirect;
1242
1243 1243 if ((nbytes - 1) < SMALL_REQUEST_THRESHOLD) { if ((nbytes - 1) < SMALL_REQUEST_THRESHOLD) {
1244 1244 LOCK(); LOCK();
1245 1245 /* /*
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main