in /usr/sbin/chkrootkit (version 0.47) in line 181, a blank is missing in the line "chkutmp()" (should be: "chkutmp ()"). when the interpreter reaches that line, a segmentation fault occurs. adding the missing blank fixes the problem. Reproducible: Always Steps to Reproduce: 1. # emerge =app-forensics/chkrootkit-0.47 2. # chkrootkit
*** Bug 196493 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > *** Bug 196493 has been marked as a duplicate of this bug. *** > The duplicate bug contains a patch that fixes the problem. Something in the code trips a bug with the -O2 gcc optimization flag.
Created attachment 167487 [details, diff] chkrootkit-0.48-some-overruns-fixes.patch Better show changes as a patch - easier to review. And, please, attach changes to bugzilla - then we do not loose them. BTW, could somebody provide test case as this crash is not reproducible on my system?
Although I failed to reproduce the issue, patch seems to be correct. Applied. Reopen bug if problem is still reproducible in >=chkrootkit-0.48-r1 and attach wtmp files so I could reproduce crash too. Thanks you bazbar for report and Sourav Mandal for the fix.