[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fsanitize=bounds-strict caught potential error
From: |
Andreas Schwab |
Subject: |
Re: fsanitize=bounds-strict caught potential error |
Date: |
Sun, 05 Dec 2021 16:24:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.90 (gnu/linux) |
On Dez 05 2021, Eli Zaretskii wrote:
>> From: Po Lu <luangruo@yahoo.com>
>> Date: Sun, 05 Dec 2021 21:04:47 +0800
>>
>> I don't know if this message is correct or not, but I got
>>
>> xdisp.c:30394:37: runtime error: index -1 out of bounds for type
>> 'iterator_stack_entry [5]'
>
> The compiler doesn't know enough to realize that this code can never
> be executed with it->sp < 1. This code is there since 2003, and never
> gave us any trouble.
If you put a breakpoint there, you will see it.sp == 0 most of the time
actually.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."