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

Re: Bug: Searching through sufficiently large $historywords causes seg fault



On Fri, May 12, 2023 at 2:28 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> 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@xxxxxxxxx> 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?




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