mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 12:45:17 -07:00
fix(base64): only check padding if leftover index is set (#25854)
This commit is contained in:
parent
224f303ee5
commit
746a153bc1
@ -180,7 +180,7 @@ char *base64_decode(const char *src, size_t src_len)
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
if (leftover_i >= -1) {
|
||||
if (leftover_i > -1) {
|
||||
int padding_len = acc_len / 2;
|
||||
int padding_chars = 0;
|
||||
for (; (size_t)leftover_i < src_len; leftover_i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user