[client,common] fix possible integer overflow

This commit is contained in:
akallabeth 2024-09-24 11:31:40 +02:00
parent 3d210d815d
commit 1f3e6decf2
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -441,7 +441,7 @@ static size_t print_description(const char* text, size_t start_offset, size_t cu
const int rc = printf("\n");
if (rc >= 0)
{
WINPR_ASSERT(SIZE_MAX - rc >= current);
WINPR_ASSERT(SIZE_MAX - rc > current);
current += (size_t)rc;
}
return current;