]> granicus.if.org Git - python/commit
Issue #21639: Fix a division by zero in tracemalloc on calloc(0, 0). The
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 2 Jun 2014 19:40:22 +0000 (21:40 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 2 Jun 2014 19:40:22 +0000 (21:40 +0200)
commitaa0e7afa438d7586353a3338fd350449714e117a
treece0e03763435ae51fd10a8017e3cd522fff198d1
parent38d65dff7c7f929fbefd83a887ff8997d96e2505
parent8dd49fe09fc4ac3b527914a0703c0dc0429aa125
Issue #21639: Fix a division by zero in tracemalloc on calloc(0, 0). The
regression was introduced recently with the introduction of the new "calloc"
functions (PyMem_RawCalloc, PyMem_Calloc, PyObject_Calloc).

Add also a unit test to check for the non-regression.
Modules/_tracemalloc.c