Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh malloc/heap corruption
- X-seq: zsh-workers 53978
- From: "Anthony Heading" <ajrh@xxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: zsh malloc/heap corruption
- Date: Sun, 28 Sep 2025 15:17:54 -0400
- Archived-at: <https://zsh.org/workers/53978>
- Feedback-id: i6aa94791:Fastmail
- In-reply-to: <CAH+w=7YXbPXdSV86FTTuHEuuFCV=95t+WSUjkPx+t0qF+FVnCA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <9da6855d-0253-4fb1-b967-6f47aabc1728@app.fastmail.com> <CAH+w=7Z9+tSW=ccqDk-5+v4zdcY+D_SS_QZyNss8gqNyqJgPXA@mail.gmail.com> <1e18974e-139f-4e70-9564-fb6484a7c1f5@app.fastmail.com> <CAH+w=7awGunKCwxeEMKzNBXS1Wvb3rf2hMfLj6UfB+Bkkvz6xw@mail.gmail.com> <0b4a718a-c913-4b5b-8311-18abe9a2ae30@app.fastmail.com> <CAH+w=7arPpnL5Boozz5wudHJhR4x1g-s5aws2CyTztGeHXh50w@mail.gmail.com> <CAH+w=7YXbPXdSV86FTTuHEuuFCV=95t+WSUjkPx+t0qF+FVnCA@mail.gmail.com>
I can confirm your patch appears to fix the problem; so does avoiding
it with 'setopt re_match_pcre', though I did as you suggest and
switched to native zsh pattern matching.
Many thanks
A
On Sun, Sep 28, 2025, at 1:21 PM, Bart Schaefer wrote:
> On Sun, Sep 28, 2025 at 10:18 AM Bart Schaefer
> <schaefer@xxxxxxxxxxxxxxxx> wrote:
>>
>> The following should fix it, at the cost of possibly slowing down
>> some regular expression matches a little.
>
> Of course you could also avoid it by not using the "=~" operator.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author