Bug 815575 - PATCH: properly deal with crypt() returning NULL
PATCH: properly deal with crypt() returning NULL
Product: Fedora
Classification: Fedora
Component: apg (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Kevin Fenzi
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-04-23 18:15 EDT by Paul Wouters
Modified: 2012-04-23 21:16 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-23 21:16:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch hanlding crypt() returning NULL (1.82 KB, patch)
2012-04-23 18:16 EDT, Paul Wouters
no flags Details | Diff

  None (edit)
Description Paul Wouters 2012-04-23 18:15:57 EDT
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 18:16:39 EDT
Created attachment 579707 [details]
patch hanlding crypt() returning NULL
Comment 2 Kevin Fenzi 2012-04-23 21:16:47 EDT
Build in rawhide. thanks!

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

Note You need to log in before you can comment on or make changes to this bug.