bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault with bad array subscript


From: Roman Rakus
Subject: Re: segfault with bad array subscript
Date: Fri, 16 Sep 2011 14:46:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2

On 09/15/2011 08:38 PM, Chet Ramey wrote:
Bash Version: 4.1
Patch Level: 5
Release Status: release

Description:
   Accidentally found the bug. This is what I executed:
     /bin/bash -c 'declare -r a[]=asd'
Thanks for the report.  I'll take a look.

Chet

The crash is in builtins/declare.def on line 541:
          if ((flags_on & (att_exported|att_readonly)) && tempvar_p (var))

var is NULL.

RR



reply via email to

[Prev in Thread] Current Thread [Next in Thread]