bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62009: 29.0.60; Emacs crashes on setf symbol-name


From: Dmitry Gutov
Subject: bug#62009: 29.0.60; Emacs crashes on setf symbol-name
Date: Sat, 11 Mar 2023 00:01:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 10/03/2023 14:24, Daniel Mendler wrote:
On 3/10/23 13:13, Eli Zaretskii wrote:
Date: Fri, 10 Mar 2023 12:36:17 +0100
Cc: Gregory Heytings<gregory@heytings.org>,
  Philip Kaludercic<philipk@posteo.net>,michael_heerdegen@web.de,
  monnier@iro.umontreal.ca,62009@debbugs.gnu.org, Eli Zaretskii
  <eliz@gnu.org>, Augusto Stoffel<arstoffel@gmail.com>
From: Daniel Mendler<mail@daniel-mendler.de>

       /* Number of characters in string; MSB is used as the mark bit.  */
       ptrdiff_t size;
       /* If nonnegative, number of bytes in the string (which is multibyte).
         If negative, the string is unibyte:
         -1 for data normally allocated
         -2 for data in rodata (C string constants)
         -3 for data that must be immovable (used for bytecode)  */
       ptrdiff_t size_byte;
Thanks! That's good. Given that a read only flag already exists, it is
easy to fix the issue. We just have to make sure that the size is
negative for the symbol names and add a check in `aset`.
Let's not do that!
Why not? There won't be a performance cost.

Perhaps we could use some exact benchmark results.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]