neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 746a153bc1a1bc1433a1246fcf454eeb058b9de1
parent 224f303ee54c54d2147f03010385e8cc48e42869
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date:   Tue, 31 Oct 2023 10:13:45 -0500

fix(base64): only check padding if leftover index is set (#25854)


Diffstat:
Msrc/nvim/base64.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/base64.c b/src/nvim/base64.c @@ -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++) {