]> git.eshelyaron.com Git - emacs.git/commit
Avoid printing NUL characters in 'message' (bug#75900)
authorPip Cet <pipcet@protonmail.com>
Mon, 27 Jan 2025 21:06:27 +0000 (13:06 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:08:49 +0000 (19:08 +0100)
commit8018eb46ff5c3aa3efe237c795e0a892d418ba01
tree764188c36c1e934d5b01a219c1191e267e24ddb2
parent5e60d3a0c2c8725c323e5394d853f9fe12ce8587
Avoid printing NUL characters in 'message' (bug#75900)

* src/xdisp.c (vmessage): Increase buffer size to fit an extra
multibyte character.  On buffer overflow, drop the last multibyte
character to determine an accurate byte length.

(cherry picked from commit 8812f526cfb145e00ee4cb74eac05b25953da02c)
src/xdisp.c