You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-28 18:37:25 +03:00
Policy and statistics code has a need to check certain fields of the mechanism parameter structures. Check for correct mechanism parameter length and pointer before attempting to access the mechanism parameter fields. This avoids seg-faults in case an application passes an invalid mechanism parameter. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>