[Top][All Lists]

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

Re: Extended regex match (shmatch.c:115) malloc error

From: Chet Ramey
Subject: Re: Extended regex match (shmatch.c:115) malloc error
Date: Tue, 10 Aug 2021 09:22:55 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

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    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

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