mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(base64): only check padding if leftover index is set (#25854)
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user