]> git.eshelyaron.com Git - emacs.git/commit
Fix GC bug causing incorrect 'format' output (Bug#75754)
authorPip Cet <pipcet@protonmail.com>
Wed, 22 Jan 2025 19:08:02 +0000 (19:08 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sat, 25 Jan 2025 17:43:28 +0000 (18:43 +0100)
commit83677db827cf529f10ea7b3747a432e24d79d0db
tree12b4514e9e6cdaa694fab1bcf5e4f5a9b0c2ed3e
parent9ae11283d401453256758fb1f36711c449597d6a
Fix GC bug causing incorrect 'format' output (Bug#75754)

This fixes the correctness bug discovered in bug#75754, but not the
performance issue or excessive stack usage.

* src/editfns.c (styled_format): Split 'info' array into two arrays,
one of them allocated via SAFE_ALLOCA_LISP for GC protection.

(cherry picked from commit ed5067e689a5e38795d5c27c5a688886d259a298)
src/editfns.c