finger segmentation fault when pty not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bsd-finger (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Example error:
finger: /dev//pts/3: No such file or directory
Login Name Tty Idle Login Time Office Office Phone
Segmentation fault (core dumped)
This crash can happen if the utmp entry references a terminal that is no longer allocated. In this case, it prints an error message (eg. finger: /dev//pts/3: No such file or directory), but w->idletime and w->writable are not initialised in that code path. w->idletime now contains junk, which is fed into gmtime(
Description: Ubuntu 18.04.5 LTS
Release: 18.04
finger:
Installed: 0.17-15.1
Candidate: 0.17-15.1
Version table:
*** 0.17-15.1 500
500 http://
100 /var/lib/
The attachment "finger- idletime. patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]