mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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:
parent
b6d14daa1c
commit
1fbb577ee2
2 changed files with 6 additions and 3 deletions
|
|
@ -92,6 +92,7 @@ Benjamin Collar
|
|||
Jeffery Collins
|
||||
Matt Conway
|
||||
David M. Cooke
|
||||
David Costanzo
|
||||
Scott Cotton
|
||||
Greg Couch
|
||||
Steve Cousins
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue