mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fix #5847: Missing length check to trace smartcard buffers.
This commit is contained in:
@@ -125,6 +125,9 @@ static char* smartcard_convert_string_list(const void* in, size_t bytes, BOOL un
|
||||
|
||||
string.pv = in;
|
||||
|
||||
if (bytes < 1)
|
||||
return NULL;
|
||||
|
||||
if (unicode)
|
||||
{
|
||||
length = (bytes / 2);
|
||||
|
||||
Reference in New Issue
Block a user