Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug: Null byte in shell history causes segfault during $historywords reverse subscripting



On Fri, May 26, 2023 at 12:37 PM Eric Freese <ericdfreese@xxxxxxxxx> wrote:
>
> I've come across a segfault when shell history has been loaded from a
> file and contains a command where a null byte was entered into the
> line editor via ^V^@ (opposed to typing as $'\0'). Reverse
> subscripting $historywords on a pattern that does not match triggers
> the error.

I can't reproduce a crash with workers/51739 - does your build have that commit?

However, I do get:
BUG: substring ends in the middle of a metachar in ztrsub()




Messages sorted by: Reverse Date, Date, Thread, Author