Bug 92445 - 'int' comparison with 'unsigned int' in for() for the array index in file p11-kit-0.23.1/p11-kit/proxy.c
Summary: 'int' comparison with 'unsigned int' in for() for the array index in file p11...
Status: RESOLVED FIXED
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-13 07:43 UTC by Pankaj
Modified: 2015-10-19 09:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
p11-kit-0.23.1-proxy patch (390 bytes, patch)
2015-10-13 07:43 UTC, Pankaj
Details | Splinter Review

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.