Bug 92445

Summary: 'int' comparison with 'unsigned int' in for() for the array index in file p11-kit-0.23.1/p11-kit/proxy.c
Product: p11-glue Reporter: Pankaj <pankaj.s01>
Component: p11-kitAssignee: Stef Walter <stefw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: p11-kit-0.23.1-proxy patch

Description Pankaj 2015-10-13 07:43:24 UTC
Created attachment 118850 [details] [review]
p11-kit-0.23.1-proxy patch

Hi ,
The issue reported same as BugID - "92443" and BugId - "92444"
'int' comparison with 'unsigned int' in for() for the array index 
in different file p11-kit-0.23.1/p11-kit/proxy.c 

the patch has been also attached, please review it.
====================================================
diff -Naur a/p11-kit-0.23.1/p11-kit/proxy.c b/p11-kit-0.23.1/p11-kit/proxy.c
--- a/p11-kit-0.23.1/p11-kit/proxy.c	2014-11-12 16:28:50.000000000 +0530
+++ b/p11-kit-0.23.1/p11-kit/proxy.c	2015-10-13 11:45:38.501947807 +0530
@@ -408,7 +408,7 @@
 	Mapping *mapping;
 	CK_ULONG index;
 	CK_RV rv = CKR_OK;
-	int i;
+	unsigned int i;
 
 	return_val_if_fail (count != NULL, CKR_ARGUMENTS_BAD);

thanks ,
Pankaj Sharma
Comment 1 Stef Walter 2015-10-19 09:15:51 UTC
Thanks. Merged into git master.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.