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.
This commit is contained in:
Tim Peters 2001-12-19 04:41:35 +00:00
parent b6d14daa1c
commit 1fbb577ee2
2 changed files with 6 additions and 3 deletions

View file

@ -92,6 +92,7 @@ Benjamin Collar
Jeffery Collins
Matt Conway
David M. Cooke
David Costanzo
Scott Cotton
Greg Couch
Steve Cousins