From 1b177eeda9d0ebb6c612b14cedbf8732fd7d7fc0 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 31 Oct 2024 13:11:20 +0100 Subject: [PATCH] [core,security] fix assertion The assert for the buffer size required too many bytes in the output buffer. --- libfreerdp/core/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/security.c b/libfreerdp/core/security.c index 96cf00baf..c7182038c 100644 --- a/libfreerdp/core/security.c +++ b/libfreerdp/core/security.c @@ -572,7 +572,7 @@ static void fips_expand_key_bits(const BYTE* in, size_t in_len, BYTE* out, size_ WINPR_ASSERT(in_len >= sizeof(buf)); WINPR_ASSERT(out); - WINPR_ASSERT(out_len > 24); + WINPR_ASSERT(out_len >= 24); /* reverse every byte in the key */ for (size_t i = 0; i < sizeof(buf); i++)