Fix one-byte over-read in BASE64_DECODE_TABLE (#3547)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The table was declared with 255 entries but indexed by an unsigned char, so the decoder would read one byte past the array for input bytes equal to 0xFF. Through jq's normal input paths the over-read is unreachable because invalid UTF-8 bytes are normalized to U+FFFD before reaching @base64d, but the table is still wrong at the C level and reachable by libjq callers that construct strings via the C API without UTF-8 validation.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+13 added−3 removed
- other:+13 added−3 removed