Bug 980968 - zero length username string is treated as valid
Summary: zero length username string is treated as valid
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libpwquality
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-03 17:00 UTC by Ondrej Holy
Modified: 2013-07-08 14:48 UTC (History)
1 user (show)

Fixed In Version: libpwquality-1.2.2-2.fc20
Clone Of:
Environment:
Last Closed: 2013-07-08 14:48:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ondrej Holy 2013-07-03 17:00:45 UTC
Description of problem: Empty username is threated as valid when comparing the username with password to check that the password doesn't contain the username.


Actual results: The password_check function fails on empty username string with PWQ_ERROR_USER_CHECK.


Expected results: It should consider zero length strings as NULL and continue with other checks...


Additional info: Originaly filed at https://fedorahosted.org/libpwquality/ticket/1 .


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