Bug 1497837

Summary: ht://Dig fails with SIGSEGV on execution of 'rundig -v' which is a wrapper for htdig.
Product: [Fedora] Fedora Reporter: Richard Schaal <rschaal.95135>
Component: htdigAssignee: Petr Menšík <pemensik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: pemensik, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: htdig-3.2.0-0.28.b6.fc26 htdig-3.2.0-0.30.b6.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-06 10:47:26 UTC Type: Bug
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
Patch file applied to source during rpmbuild none

Description Richard Schaal 2017-10-02 20:08:30 UTC
Created attachment 1333449 [details]
Patch file applied to source during rpmbuild

Description of problem:
SIGSEGV can occur in two locations in htdig/Parseable.cc where a NULL pointer is dereferenced.  These locations were apparently recently tweaked in order to get the updated compiler to accept the code, but a slightly wider inspection window shows that the pointer had to be NULL in order to ever exit the subroutine.


Version-Release number of selected component (if applicable):
htdig-3.2.0-0.27.b6.fc26.x86_64.rpm



How reproducible: - Rock solid


Steps to Reproduce:
1. Install htdig
2. run rundig  
3. 

Actual results:
rundig fails complaining of segment violation.

Expected results:
htdig should start a "crawl and parse" based on the configuration

Additional info: Attached is the patch file that I altered to fix the issue. This should replace the file of the same name.

Comment 1 Petr Menšík 2018-01-15 16:44:08 UTC
Hi, thanks for the fix. But I did not test it properly. You are absolutely right, I did not considered NULL value as valid input.

Thanks for the patch! Sorry for the delay.

Comment 2 Fedora Update System 2018-01-15 16:56:36 UTC
htdig-3.2.0-0.28.b6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fe049e5032

Comment 3 Fedora Update System 2018-01-15 16:57:02 UTC
htdig-3.2.0-0.30.b6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7dfb598e7b

Comment 4 Fedora Update System 2018-01-17 06:47:04 UTC
htdig-3.2.0-0.30.b6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7dfb598e7b

Comment 5 Fedora Update System 2018-01-17 06:56:13 UTC
htdig-3.2.0-0.28.b6.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-fe049e5032

Comment 6 Fedora Update System 2018-02-06 10:47:26 UTC
htdig-3.2.0-0.28.b6.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2018-02-06 11:20:47 UTC
htdig-3.2.0-0.30.b6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2018-02-06 15:26:54 UTC
htdig-3.2.0-0.30.b6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.