zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Eric Freese <ericdfreese@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Bug: Null byte in shell history causes segfault during $historywords reverse subscripting
Date: Fri, 26 May 2023 18:46:35 -0700	[thread overview]
Message-ID: <CAH+w=7aCePn+UwRHJ6mhcUCR5hRVZp7+ap-MNFooAMP-HTDiHg@mail.gmail.com> (raw)
In-Reply-To: <CAAikoAL0hiooRDJu=JdPqfQH_kZV+O-+D1iETKrV5JF3oNRiCA@mail.gmail.com>

On Fri, May 26, 2023 at 12:37 PM Eric Freese <ericdfreese@gmail.com> 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()


  reply	other threads:[~2023-05-27  1:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-26 19:37 Eric Freese
2023-05-27  1:46 ` Bart Schaefer [this message]
2023-05-27  7:33   ` Bart Schaefer
2023-06-05  7:11 ` Jun T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7aCePn+UwRHJ6mhcUCR5hRVZp7+ap-MNFooAMP-HTDiHg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=ericdfreese@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).