Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11256

Re: cannot declare local variables if they're readonly

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: cannot declare local variables if they're readonly
Date 2015-07-23 09:05 -0400
Message-ID <mailman.7298.1437656729.904.bug-bash@gnu.org> (permalink)
References <CAAZkfo+DWFdcabbcfq69EC-s3RvrxGRRfccLng_1sOjQQ9W1=Q@mail.gmail.com>

Show all headers | View raw


On 7/22/15 7:12 PM, isabella parakiss wrote:
> From variables.c
> 
>                                        The test against old_var's context
>      level is to disallow local copies of readonly global variables (since I
>      believe that this could be a security hole).
> 
> Can you please explain how that can be a security hole?

http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00194.html
http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00099.html

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: cannot declare local variables if they're readonly Chet Ramey <chet.ramey@case.edu> - 2015-07-23 09:05 -0400

csiph-web