]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
In order to fix SF bug # 824977, we replace calloc()/free() calls in
authorBarry Warsaw <barry@python.org>
Tue, 11 May 2004 02:07:03 +0000 (02:07 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 11 May 2004 02:07:03 +0000 (02:07 +0000)
commit77acf2b741b7b25b367c187f5f49dd91b59dbf7e
treec0f249731403849dc190c5517782468d5897b7ef
parent57f15afbc0a6117e2e62cee8971014847e6ff32d
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