mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
First, the correct length for decoding should be computed with /4*3 , not the other way round as when encoding. But also, without padding, a string such as "Zg" is valid base64 (here, it's the character 'f', padded base64 would be "Zg=="). decodedLenUpperBound() returned 0 instead of 1 in that example. Correctly fix the computation of the upper bound. |
History
|
|
|---|---|---|
| .. | ||
| asn1 | ||
| asn1.zig | ||
| base64_hex_ct.zig | ||