mainThe GNU Bourne-Again SHell - Support: sr #109675, bash can be made to read...

 
 

sr #109675: bash can be made to read uninitialized memory

Submitter:  None
Submitted:  Fri 03 May 2019 10:32:04 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 13 May 2019 02:12:27 PM UTC, comment #1: 

This has been fixed in bash-5.0.

Chet Ramey <chet>
Group administrator
Fri 03 May 2019 10:32:04 AM UTC, original submission:  

"declare -A" via nameref from within a function can fail with an error that suggests uninitialized memory is being read. The garbled identifier is a different short binary string on each run.


bash -c 'foo() { declare -n bar=baz; declare -A bar; bar[x]=y; }; foo'
environment: line 0: `�d�K�U': not a valid identifier


Tested on 4.18

Anonymous

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-13 chet StatusNone Done

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code