zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-workers@zsh.org
Subject: Re: Bug: Searching through sufficiently large $historywords causes seg fault
Date: Fri, 12 May 2023 09:12:36 -0700	[thread overview]
Message-ID: <CAH+w=7aGYbQzy_gBrwf+adxQjaX-espwYdkxeUcMbNOBXLpppQ@mail.gmail.com> (raw)
In-Reply-To: <786956771.10261130.1683883695977@mail.virginmedia.com>

On Fri, May 12, 2023 at 2:28 AM Peter Stephenson
<p.w.stephenson@ntlworld.com> wrote:
>
> Here's the only obvious case I can see in normal history management
> where you might get a miscalculation

On Wed, May 3, 2023 at 8:35 AM Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
>
> (gdb) p (int)(e-hstr)
> $65 = -31903

Is it not possible that what we actually have here is a huge overflow
in (e) such that (e-hstr) is a very large unsigned?


      reply	other threads:[~2023-05-12 16:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-08  8:58 Marlon Richert
2023-05-08 17:01 ` Bart Schaefer
2023-05-09 16:53   ` Bart Schaefer
2023-05-09 16:58     ` Bart Schaefer
2023-05-09 19:01       ` Peter Stephenson
2023-05-09 23:05         ` Bart Schaefer
2023-05-10  8:39           ` Peter Stephenson
2023-05-12  9:28             ` Peter Stephenson
2023-05-12 16:12               ` Bart Schaefer [this message]

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=7aGYbQzy_gBrwf+adxQjaX-espwYdkxeUcMbNOBXLpppQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=p.w.stephenson@ntlworld.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).