]> granicus.if.org Git - python/commit
In order to fix SF bug # 824977, we replace calloc()/free() calls in
authorBarry Warsaw <barry@python.org>
Tue, 11 May 2004 02:05:11 +0000 (02:05 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 11 May 2004 02:05:11 +0000 (02:05 +0000)
commit23164a5ca7e2fa02e0ea5d0fbf3fd4b0d51b61bd
treeabc62411209f383eac8029d562c27f5d1b60dcbc
parentfd0283eaa0fd593d73aab0be52038f3b6cb6c44b
In order to fix SF bug # 824977, we replace calloc()/free() calls in
binascii_a2b_qp() and binascii_b2a_qp() with calls to PyMem_Malloc() and
PyMem_Free().  These won't return NULL unless the allocations actually fail,
so it won't trigger a bogus memory error on some platforms <cough>AIX</cough>
when passed a length of zero.
Modules/binascii.c