From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.3-6 i686; en-US; 0.7) Gecko/20010316
Description of problem:
core dump when chkconfig check a file doesn't have padding, example size of
that file is "4096" byte.
Steps to Reproduce:
1.create shell script file which size is "4096" byte in /etc/init.d directory.
2.execute "chckconfig --list" command
occur segmentation fault(core dumped)
Actual Results: occur segmentation fault(core dumped)
Expected Results: do not occur segmentation fault.
chkconfig source code expect the value of byte after file's last is zero.
see chkconfig-1.2.22/leveldb.c readServiceInfo() function.
Created attachment 20802 [details]
I make a patch for this bug. Please test this.
Looks good, will be in 1.2.23-1.