Merge pull request #12319 from akallabeth/grow-reasonable

[allocations] fix growth of preallocated buffers
This commit is contained in:
akallabeth
2026-02-17 15:23:17 +01:00
committed by GitHub
28 changed files with 154 additions and 105 deletions

View File

@@ -313,7 +313,7 @@ static inline char* base64_encode_ex(const BYTE* WINPR_RESTRICT alphabet,
if (crLf)
{
size_t nCrLf = (outLen + lineSize - 1) / lineSize;
extra = nCrLf * 2;
extra = nCrLf * 2ull;
}
size_t outCounter = 0;