Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tools/clu_base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int wolfCLU_Base64Setup(int argc, char** argv)
else {
/* For regular base64 decoding */
/* Calculate output size */
outputSz = (inputSz * 3) / 4 + 1;
outputSz = (inputSz / 4) * 3 + (inputSz % 4) * 3 / 4 + 1;

/* Allocate output buffer */
output = (byte*)XMALLOC(outputSz, HEAP_HINT,
Expand Down
Loading