Bug 348 - infinite loop scanning wtmpx
Summary: infinite loop scanning wtmpx
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: -current
Hardware: Other All
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-10 07:02 AEST by Rodney Ruddock
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Ruddock 2002-07-10 07:02:06 AEST
This is with OpenSSH 3.4p1.
In the function wtmpx_get_entry() in the file loginrec.c from lines
1264 through 1292 there is a while-loop with the test condition
of "!found". Within the while-loop when the test condition wtmpx_islogin()
returns true the action "found = 1;" should be done.
Otherwise the while-loop will loop forever on a wtmpx login entry and the
entry following it. Found while running the code.
When "found = 1;" is added before line  1286 (the "continue;") the code performs
as would be expected.
Comment 1 Tim Rice 2002-07-15 08:51:28 AEST
Fixxed in current
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED