]> git.eshelyaron.com Git - emacs.git/commit
Avoid crashes with very wide TTY frames on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 25 Aug 2018 12:26:41 +0000 (15:26 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 25 Aug 2018 12:26:41 +0000 (15:26 +0300)
commit9a1329e966ecbd22464f607456153bdd4fa0d5ea
treebb371434ae2d664e23a5100e60d1ee545e8140c6
parent9a613d3ed0331f9fd2528520a96d977ebba57d7d
Avoid crashes with very wide TTY frames on MS-Windows

* src/w32console.c <glyph_base>: Reduce the number of elements
to 80.
<glyphs, glyphs_len>: New static variables.
(w32con_clear_end_of_line): If the line is wider than the
current size of the "empty row" in 'glyphs', reallocate
'glyphs' to support the full width of the frame.  This
avoids segfaults when the frame is wider than 256 columns.
(Bug#32445)
src/w32console.c