Fix #5847: Missing length check to trace smartcard buffers.

This commit is contained in:
Armin Novak 2020-02-10 14:28:38 +01:00
parent 245fc6014d
commit 11d3ea3b43
1 changed files with 3 additions and 0 deletions

View File

@ -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);