]> code.delx.au - gnu-emacs/blobdiff - src/term.c
Avoid crashes due to insanely large columns in tabulated-list-format
[gnu-emacs] / src / term.c
index a77e5729b5b1ef5dddf5c6658a257ef261220d05..43972109655ca360dfc3f8c32e95ee0b4ac680b2 100644 (file)
@@ -1676,6 +1676,7 @@ append_composite_glyph (struct it *it)
          glyph = it->glyph_row->glyphs[it->area];
        }
       glyph->type = COMPOSITE_GLYPH;
+      eassert (it->pixel_width <= SHRT_MAX);
       glyph->pixel_width = it->pixel_width;
       glyph->u.cmp.id = it->cmp_it.id;
       if (it->cmp_it.ch < 0)