Bug 447719

Summary: [PATCH] Absent XPath error handling and buffer overflow leading to segfaults
Product: [Fedora] Fedora Reporter: Lubomir Rintel <lkundrak>
Component: xgrepAssignee: Brendt Wohlberg <osspkg>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-12 03:41:18 UTC Type: ---
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
Add some error checking and fix a buffer overflow none

Description Lubomir Rintel 2008-05-21 11:55:26 UTC
See attached patch.

Comment 1 Lubomir Rintel 2008-05-21 11:55:26 UTC
Created attachment 306233 [details]
Add some error checking and fix a buffer overflow

Comment 2 Brendt Wohlberg 2008-05-23 20:33:06 UTC
(In reply to comment #1)
> Created an attachment (id=306233) [edit]
> Add some error checking and fix a buffer overflow

Thanks for the patch. Would you be able to give a simple usage example which
triggers the relevant bug?




Comment 3 Lubomir Rintel 2008-05-23 21:26:50 UTC
Oh, of course; I thought the problem is triggered by virtually any incorrect
xpath passwd to xgrep, such as:

xgrep -x 'lala lala lala' some.xml

Comment 4 Fedora Update System 2008-06-03 03:46:33 UTC
xgrep-0.07-1.fc9 has been submitted as an update for Fedora 9

Comment 5 Lubomir Rintel 2008-06-04 22:28:03 UTC
Sorry -- are you serious that you're doing an update for such a minor issue?
Really, do you think it is worth? :)

Comment 6 Fedora Update System 2008-06-06 07:46:51 UTC
xgrep-0.07-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.