Bug 44199 - Segmentation fault when chkconfig check a file doesn't have padding.
Summary: Segmentation fault when chkconfig check a file doesn't have padding.
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: chkconfig (Show other bugs)
(Show other bugs)
Version: 7.1
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-06-12 01:48 UTC by Keiichi Mori
Modified: 2014-03-17 02:21 UTC (History)
1 user (show)

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: ---


Attachments (Terms of Use)
I make a patch for this bug. Please test this. (1.86 KB, patch)
2001-06-12 02:34 UTC, Keiichi Mori
no flags Details | Diff

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!


Note You need to log in before you can comment on or make changes to this bug.