]> granicus.if.org Git - python/commit
SF bug #494738: binascii_b2a_base64 overwrites memory.
authorTim Peters <tim.peters@gmail.com>
Wed, 19 Dec 2001 04:41:35 +0000 (04:41 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 19 Dec 2001 04:41:35 +0000 (04:41 +0000)
commit1fbb577ee26becacf53b92c53df356aaf227ea73
tree269809974f51b25df90a37f3ee687d66c3c20150
parentb6d14daa1c48d8938a140a671bcd17cb40cdd54d
SF bug #494738:  binascii_b2a_base64 overwrites memory.
binascii_b2a_base64():  We didn't allocate enough buffer space for very
short inputs (e.g., a 1-byte input can produce a 5-byte output, but we
only allocated 2 bytes).  I expect that malloc overheads absorbed the
overrun in practice, but computing a correct upper bound is a very simple
change.
Misc/ACKS
Modules/binascii.c