Bug 74944 - Kudzu ddc detection segfaults on bogus horizontal/veritical sync/refresh data
Kudzu ddc detection segfaults on bogus horizontal/veritical sync/refresh data
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: kudzu (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-02 19:04 EDT by Dan Burcaw
Modified: 2014-03-16 22:31 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-17 00:44:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed fix for this bug. (452 bytes, patch)
2002-10-02 19:05 EDT, Dan Burcaw
no flags Details | Diff

  None (edit)
Description Dan Burcaw 2002-10-02 19:04:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.1) Gecko/20020827

Description of problem:
Kudzu's ddc checking uses values from the monitor's entry in MonitorsDB
if the horizontal and vertical ranges for the monitor are bogus.
Unfortunately, if the MonitorsDB doesn't have an entry for the monitor,
kudzu segfaults.  This is because it tries to access a null pointer.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Run kudzu -b DDC on a monitor with bogus horz/vert ranges such as many LCDs.
Due this without that monitor having an entry in MonitorsDB.
2.
3.
	

Actual Results:  Seg fault.

Expected Results:  No seg fault. :-)

Additional info:

Attached is a patch to fix this problem.  It basically
checks not only that the ranges are bogus, but also that
we have in fact found a monitor entry in the MonitorsDB
to use.
Comment 1 Dan Burcaw 2002-10-02 19:05:04 EDT
Created attachment 78284 [details]
Proposed fix for this bug.
Comment 2 Miloslav Trmac 2002-10-02 21:21:07 EDT
duplicate of 70190 and 74424
Comment 3 Bill Nottingham 2003-01-17 00:44:46 EST
Added, will be in 0.99.89-1.

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