[Pcsclite-cvs-commit] r422 - trunk/PKCS11/src
Ludovic Rousseau
rousseau at costa.debian.org
Mon May 15 09:49:23 UTC 2006
Author: rousseau
Date: 2006-05-15 09:49:22 +0000 (Mon, 15 May 2006)
New Revision: 422
Modified:
trunk/PKCS11/src/p11x_object.c
Log:
object_MatchAttrib(): check that the attribute value is specified before
dereferencing it.
Closes: [ #301607 ] Bug in object_MatchAttrib()
Thanks to Roman Lewandowski for the patch
Modified: trunk/PKCS11/src/p11x_object.c
===================================================================
--- trunk/PKCS11/src/p11x_object.c 2006-03-28 13:25:21 UTC (rev 421)
+++ trunk/PKCS11/src/p11x_object.c 2006-05-15 09:49:22 UTC (rev 422)
@@ -701,6 +701,7 @@
log_Log(LOG_LOW, "Match attribute type: 0x%lX", attrib->type);
if (!CKR_ERROR(rv = object_GetAttrib(attrib->type, object, &obj_attrib)) &&
+ (obj_attrib->attrib.pValue != NULL) &&
(!memcmp(forward, obj_attrib->attrib.pValue, attrib->ulValueLen) ||
!memcmp(reverse, obj_attrib->attrib.pValue, attrib->ulValueLen)))
{
More information about the Pcsclite-cvs-commit
mailing list