On 8/9/21 1:08 PM, Gyorgy Matyasfalvi wrote:

> uname output: HP-UX sovmh352 B.11.31 U ia64 1429105484 unlimited-user
> license
> Machine Type: ia64-hp-hpux11.31
> 
> Bash Version: 5.1
> Patch Level: 8
> Release Status: release
> 
> Description:
>         When a regex matches inside [[ ]] it results in a malloc error.
>         Whereas if it doesn't you get expected behavior.

I can't reproduce this on any of the systems I have, which do not include
HP-UX. I suspect the libc regexec code is overwriting the matches array in
a way that their libc malloc does not detect.

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

Reply via email to