diff options
author | Eli Zaretskii <eliz@gnu.org> | 2020-04-28 11:57:16 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-04-28 11:57:16 +0300 |
commit | 16fed05ba85c3d92d3c913657dd50a648ad3884a (patch) | |
tree | d4dda280f6949d3f1ae169bc533ec81e4c9c18cd /test/lisp/emacs-lisp/ring-tests.el | |
parent | 0278741676e2eca89ecf085344be6bc4fd586396 (diff) | |
download | emacs-16fed05ba85c3d92d3c913657dd50a648ad3884a.tar.gz emacs-16fed05ba85c3d92d3c913657dd50a648ad3884a.tar.bz2 emacs-16fed05ba85c3d92d3c913657dd50a648ad3884a.zip |
Avoid crashes on TTY frames with over-long compositions
* src/term.c (encode_terminal_code): Each character from an
automatic composition is a multibyte character, so its multibyte
representation can take up to MAX_MULTIBYTE_LENGTH bytes.
Account for that when allocating storage for characters to be
encoded. (Bug#40913)
Diffstat (limited to 'test/lisp/emacs-lisp/ring-tests.el')
0 files changed, 0 insertions, 0 deletions