mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,common] fix possible integer overflow
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user