Files
jq/tests
Jils Shah 3e208ae2b6 Reject data after padding in @base64d (#3732)
The `@base64d` decoder stopped at the first `=` and ignored the rest of
the input, so "YWJjZA==ZWZn" decoded to "abcd" without an error.

Raise the existing "is not valid base64 data" error when anything other
than `=` follows the first `=`. This also rejects whitespace after the
padding, so "YQ==\n" no longer decodes to "a", consistent with how
whitespace is rejected elsewhere in the input. Padded and unpadded input
decodes as before.
2026-12-06 14:47:11 +09:00
..
…
…
…
…
…
…
…