commit | 1fbb577ee26becacf53b92c53df356aaf227ea73 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Dec 19 04:41:35 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Dec 19 04:41:35 2001 +0000 |
tree | 269809974f51b25df90a37f3ee687d66c3c20150 | |
parent | b6d14daa1c48d8938a140a671bcd17cb40cdd54d [diff] |
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.