unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: luangruo@yahoo.com, emacs-devel@gnu.org
Subject: Re: fsanitize=bounds-strict caught potential error
Date: Sun, 05 Dec 2021 17:23:30 +0200	[thread overview]
Message-ID: <83r1ar2hzh.fsf@gnu.org> (raw)
In-Reply-To: <87r1arozgc.fsf@igel.home> (message from Andreas Schwab on Sun, 05 Dec 2021 16:15:15 +0100)

> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Po Lu <luangruo@yahoo.com>,  emacs-devel@gnu.org
> Date: Sun, 05 Dec 2021 16:15:15 +0100
> 
> >> 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.
> 
> It is a runtime error, thus the erroneous access is actually being
> executed.

Then let's put an assertion there and find the culprit.  Maybe it's
the min-width feature, which is new on master.



  reply	other threads:[~2021-12-05 15:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87o85vp5hs.fsf.ref@yahoo.com>
2021-12-05 13:04 ` fsanitize=bounds-strict caught potential error Po Lu
2021-12-05 13:55   ` Eli Zaretskii
2021-12-05 15:15     ` Andreas Schwab
2021-12-05 15:23       ` Eli Zaretskii [this message]
2021-12-05 15:36         ` Eli Zaretskii
2021-12-05 15:24     ` Andreas Schwab
2021-12-05 15:35   ` Andreas Schwab

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83r1ar2hzh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=schwab@linux-m68k.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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).