Fix in encrypt_decrypt(), check for (in_len <= sizeof orig_data)

This commit is contained in:
alegon01 2019-04-05 10:39:52 +02:00
parent 4913feadb8
commit f631b5f733
1 changed files with 1 additions and 1 deletions

View File

@ -5361,7 +5361,7 @@ static int encrypt_decrypt(CK_SESSION_HANDLE session,
return 0;
}
if (in_len >= sizeof(orig_data)) {
if (in_len > sizeof(orig_data)) {
printf("Private key size is too long\n");
return 0;
}