GNU bug report logs - #75754
styled_format stack usage/GC protection

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> protonmail.com>

Date: Wed, 22 Jan 2025 10:20:01 UTC

Severity: normal

Done: Pip Cet <pipcet <at> protonmail.com>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 75754 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Pip Cet <pipcet <at> protonmail.com>, eggert <at> cs.ucla.edu
Cc: 75754 <at> debbugs.gnu.org
Subject: Re: bug#75754: styled_format stack usage/GC protection
Date: Thu, 23 Jan 2025 07:47:42 +0200
> Date: Wed, 22 Jan 2025 19:39:35 +0000
> From: Pip Cet <pipcet <at> protonmail.com>
> Cc: 75754 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu
> 
> Pip Cet <pipcet <at> protonmail.com> writes:
> 
> > (setq print-unreadable-function
> >       (lambda (&rest args)
> >         (garbage-collect)
> >         (make-string 100 256 t)))
> >
> > (message "%S" (format "%S %S" [1] (symbol-function '+)))
> >
> > fails to print the initial "[1]" here. Changing 256 to ?A and t to nil
> > produces
> >
> > "[1] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
> >
> > GDB session confirms the bug is as I've described.
> 
> Patch:

Thanks.

Paul, any comments on the issue and/or the patch?




This bug report was last modified 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.