Red Hat Bugzilla – Bug 74944
Kudzu ddc detection segfaults on bogus horizontal/veritical sync/refresh data
Last modified: 2014-03-16 22:31:20 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):
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.
Actual Results: Seg fault.
Expected Results: No seg fault. :-)
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
Created attachment 78284 [details]
Proposed fix for this bug.
duplicate of 70190 and 74424
Added, will be in 0.99.89-1.