Commit Graph

2 Commits

Author SHA1 Message Date
Sean Curtis
53f07b7eee DecodeBase64 returns empty string on *all* errors
It already returns an empty string if it encounters an invalid character.
However, if, instead, it has an incomplete set of characters, it currently
returns a truncated result. Instead, it detects truncation and returns
the empty string.
2025-01-08 10:24:39 -08:00
Robert Sebastian Herlim
2f8997565b
Use static_cast<unsigned char> on DecodeBase64 to prevent SEGV on negative values (#1051) 2021-10-20 10:18:08 -05:00