Bug 1497837 - ht://Dig fails with SIGSEGV on execution of 'rundig -v' which is a wrapper for htdig.
Summary: ht://Dig fails with SIGSEGV on execution of 'rundig -v' which is a wrapper fo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: htdig
Version: 26
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Menšík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-02 20:08 UTC by Richard Schaal
Modified: 2018-02-06 15:26 UTC (History)
2 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-02-06 10:47:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch file applied to source during rpmbuild (642 bytes, patch)
2017-10-02 20:08 UTC, Richard Schaal
no flags Details | Diff

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.


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