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

From: Eli Zaretskii <[email-masked]>
Date: Fri, 10 Mar 2023 13:53:28 +0200

> Date: Fri, 10 Mar 2023 09:40:31 +0000
> From: Gregory Heytings <[email-masked]>
> cc: Philip Kaludercic <[email-masked]>, [email-masked], 
>     [email-masked], [email-masked], [email-masked]
> 
> 
> Instead of raising a signal, I suggest:
> 
> diff --git a/src/data.c b/src/data.c
> index 0f1d881e00b..76867d6787e 100644
> --- a/src/data.c
> +++ b/src/data.c
> @@ -780,7 +780,7 @@ DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 
> 1, 0,
> 
>     CHECK_SYMBOL (symbol);
>     name = SYMBOL_NAME (symbol);
> -  return name;
> +  return build_string (SSDATA (name));
>   }
> 
>   DEFUN ("bare-symbol", Fbare_symbol, Sbare_symbol, 1, 1, 0,

No, we will NOT increase GC pressure in Emacs just because someone
could do a silly and nonsensical thing.  No way.