logoalt Hacker News

amluto • today at 7:08 AM • 1 reply • view on HN

Are you saying that any code that base64’s a string of attacker-controlled length is a mistake?


Replies

Pinus • today at 7:23 AM

I think userbinator thought that you meant that the calculation would overflow, while I think you meant that the calculation, even if not overflowing, would return the wrong value under some conditions and that subsequent code would then overflow the buffer. (As for what I think about the actual issue, I’m too sleepy to even try. Which is probably an indication of something. =) )