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

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.

     

    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.13-4448.
    Corresponding source code