Bug 815575

Summary: PATCH: properly deal with crypt() returning NULL
Product: [Fedora] Fedora Reporter: Paul Wouters <pwouters>
Component: apgAssignee: Kevin Fenzi <kevin>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: kevin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-24 01:16:47 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:
Attachments:
Description Flags
patch hanlding crypt() returning NULL none

Description Paul Wouters 2012-04-23 22:15:57 UTC
the crypt() call can return NULL in some error conditions. One of those is when the computer is running in FIPS mode and an MD5 or DES hash is requested.

Attached patch fixes the direct/indirect calls to crypt() where it is not checked for NULL before being used in operations as strchr() or strcmp()

Comment 1 Paul Wouters 2012-04-23 22:16:39 UTC
Created attachment 579707 [details]
patch hanlding crypt() returning NULL

Comment 2 Kevin Fenzi 2012-04-24 01:16:47 UTC
Build in rawhide. thanks!

let me know if you think this deserves stable updates...