Merge pull request #5875 from akallabeth/smartcard_missing_null_check

Fix #5847: Missing length check to trace smartcard buffers.
This commit is contained in:
David Fort 2020-02-10 14:57:46 +01:00 committed by GitHub
commit 7c26d7d9ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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