Bug 603683 - faillog: Failed to get the entry for UID
faillog: Failed to get the entry for UID
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: shadow-utils (Show other bugs)
13
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Peter Vrabec
Fedora Extras Quality Assurance
:
Depends On:
Blocks: 603691 603692
  Show dependency treegraph
 
Reported: 2010-06-14 07:06 EDT by Peter Vrabec
Modified: 2010-07-01 14:51 EDT (History)
2 users (show)

See Also:
Fixed In Version: shadow-utils-4.1.4.2-7.fc13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 603691 603692 (view as bug list)
Environment:
Last Closed: 2010-07-01 14:51:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
fix (1.64 KB, patch)
2010-06-14 07:23 EDT, Peter Vrabec
no flags Details | Diff

  None (edit)
Description Peter Vrabec 2010-06-14 07:06:39 EDT
Description of problem:
Integer underflow happens on x86_64 in faillog command when /var/log/faillog is empty file:
if (offset <= (statbuf.st_size - sizeof (fl))) 

How reproducible:
remove /var/log/faillog
touch /var/log/faillog
run faillog

  
Actual results:
faillog: Failed to get the entry for UID 0
faillog: Failed to get the entry for UID 1
faillog: Failed to get the entry for UID 2
faillog: Failed to get the entry for UID 3
faillog: Failed to get the entry for UID 4
faillog: Failed to get the entry for UID 5
...

Expected results:
Display only list of user faillog records who have ever had a login failure.
Comment 1 Peter Vrabec 2010-06-14 07:23:29 EDT
Created attachment 423796 [details]
fix
Comment 2 Fedora Update System 2010-06-14 07:33:14 EDT
shadow-utils-4.1.4.2-7.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/shadow-utils-4.1.4.2-7.fc13
Comment 3 Fedora Update System 2010-06-15 12:08:10 EDT
shadow-utils-4.1.4.2-7.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update shadow-utils'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/shadow-utils-4.1.4.2-7.fc13
Comment 4 Fedora Update System 2010-07-01 14:50:58 EDT
shadow-utils-4.1.4.2-7.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

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