Bug 985421

Summary: p11-kit: type mismatch in varargs
Product: Red Hat Enterprise Linux 6 Reporter: Florian Weimer <fweimer>
Component: p11-kitAssignee: Stef Walter <stefw>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: amarecek, stefw
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: p11-kit-0.18.5-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 11:40:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 983512    
Attachments:
Description Flags
Always pass size_t varargs to p11_hash_xxx() functions
none
Always pass size_t varargs to p11_hash_xxx() functions none

Description Florian Weimer 2013-07-17 13:00:50 UTC
tools/extract-jks.c:prepare_jks_buffer() invokes p11_hash_sha1() with an int argument where a size_t is expected.  This is not portable.

common/x509.c:p11_x509_calc_keyid() has the same problem.

Comment 2 Stef Walter 2013-07-17 18:43:32 UTC
Created attachment 774913 [details]
Always pass size_t varargs to p11_hash_xxx() functions

Comment 3 Stef Walter 2013-07-18 10:01:45 UTC
Created attachment 775242 [details]
Always pass size_t varargs to p11_hash_xxx() functions

Comment 4 Stef Walter 2013-07-18 13:55:56 UTC
Pushed to p11-kit git stable branch, released as part of p11-kit 0.18.5. Package built for RHEL 6.5.

Comment 11 errata-xmlrpc 2013-11-21 11:40:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1626.html