Bug 44199

Summary: Segmentation fault when chkconfig check a file doesn't have padding.
Product: [Retired] Red Hat Linux Reporter: Keiichi Mori <kmori>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-12 02:35:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
I make a patch for this bug. Please test this. none

Description Keiichi Mori 2001-06-12 01:48:30 UTC
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.

How reproducible:
Always

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.

Additional info:

chkconfig source code expect the value of byte after file's last is zero.
see chkconfig-1.2.22/leveldb.c readServiceInfo() function.

Comment 1 Keiichi Mori 2001-06-12 02:34:59 UTC
Created attachment 20802 [details]
I make a patch for this bug. Please test this.

Comment 2 Bill Nottingham 2001-06-12 15:41:34 UTC
Looks good, will be in 1.2.23-1.
Thanks!