Bug 143362

Summary: multiply qualifying expression fixes
Product: [Fedora] Fedora Reporter: Dmitry V. Levin <ldv>
Component: straceAssignee: Roland McGrath <roland>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-130 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-02 04:40:30 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
strace-4.5.8-alt-qual.patch none

Description Dmitry V. Levin 2004-12-19 22:29:14 UTC
Description of problem:
1. -e signal=!io (example from manpage) is broken.
2. Missing bounds checks of user input cause segfaults.

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

Steps to Reproduce:
Actual results:

$ env -i strace -e 'signal=!io' /bin/true
strace: invalid signal `io'
$ strace -e signal=999999 true
Segmentation fault
$ strace -e read=999999 true
Segmentation fault


Expected results:
$ env -i strace -e 'signal=!io' /bin/true
execve("/bin/true", ["/bin/true"], [/* 0 vars */]) = 0
_exit(0)                                = ?
$ strace -e signal=999999 true
strace: invalid signal `999999'
$ strace -e read=999999 true
strace: invalid descriptor `999999'

Comment 1 Dmitry V. Levin 2004-12-19 22:32:49 UTC
Created attachment 108865 [details]
strace-4.5.8-alt-qual.patch

Proposed patch.

Comment 2 Roland McGrath 2005-02-02 04:40:30 UTC
I've merged in those fixes.

Comment 3 Tim Powers 2005-05-19 21:10:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-131.html