Bug 526257

Summary: (dash) don't read-uninitialized for \177 in a here-doc
Product: [Fedora] Fedora Reporter: Jim Meyering <meyering>
Component: dashAssignee: Huzaifa S. Sidhpurwala <huzaifas>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: wtogami
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: 2010-06-21 08:48:45 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:

Description Jim Meyering 2009-09-29 14:14:23 UTC
Description of problem: on some systems, a \177 byte in a here document
causes dash to malfunction.  If you're lucky, the uninitialized memory
that is read as a result does not cause trouble.  The memory is not on
the heap, so valgrind does not notice the problem.


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


How reproducible: every time


Steps to Reproduce:
1. append an entry of value 11 to the sqsyntax table
2. rebuild
3. printf ':<<\\E\n\200y\nE'|./dash
  
Actual results:
$ printf ':<<\\E\n\177y\nE'|dash
    dash: y: not found
    dash: E: not found


Expected results:
no output

Additional info:
more details and a patch: http://thread.gmane.org/gmane.comp.shells.dash/196

Comment 1 Warren Togami 2009-10-20 22:31:10 UTC
http://git.kernel.org/?p=utils/dash/dash.git;a=shortlog
I see this hasn't been committed upstream.  Has upstream responded at all about this issue?

Comment 2 Jim Meyering 2009-10-21 06:37:21 UTC
Yes.  He said he was away and would apply it upon his return.

Comment 3 Bug Zapper 2009-11-16 13:05:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora Admin XMLRPC Client 2010-03-18 05:24:52 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Huzaifa S. Sidhpurwala 2010-06-21 08:48:45 UTC
dash-0_5_6-2_fc14 in rawhide is based on new upstream 0.5.6 which fixes this problem.