PL_Base64Code will index into its input string with a negative offset if you pass in an empty string.
Here's a fix. Let me know if you'd like me to check it in.
Comment on attachment 77345 [details] [diff] [review] A possible fix Your fix is correct. Thanks.
Attachment #77345 - Flags: review+
Fix checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: --- → 4.2
I added parentheses around 0 == (srclen & 3). gcc likes that better.
Cool. Thanks, Wan-Teh!! -Roger
You need to log in before you can comment on or make changes to this bug.