]> code.delx.au - gnu-emacs/commit
Avoid crashes due to insanely large columns in tabulated-list-format
authorEli Zaretskii <eliz@gnu.org>
Fri, 1 Apr 2016 09:47:29 +0000 (12:47 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 1 Apr 2016 09:47:29 +0000 (12:47 +0300)
commitb3b523cdd66c53677c39f743a18e4c180c2ec248
tree9d23902ef39aefc257d90fecb04799d0517a5600
parenta3daa34336da158555d96d670077eedb9eaeeb9c
Avoid crashes due to insanely large columns in tabulated-list-format

* src/xdisp.c (append_stretch_glyph, produce_xwidget_glyph)
(produce_image_glyph): Limit the pixel width of the produced glyph
to SHRT_MAX.  (Bug#23178)
(append_composite_glyph, append_glyph, append_glyphless_glyph):
Add assertions to verify that the pixel width of the glyph will
never overflow a 'short'.
* src/term.c (append_composite_glyph): Add assertion to verify
that the pixel width of the glyph will never overflow a 'short'.
src/term.c
src/xdisp.c