Fix bug #12867 with crashes due to large field width in mode-line format.
commit325202732506c35fec0a7bd772d218eaf0ac659f
authorEli Zaretskii <eliz@gnu.org>
Mon, 12 Nov 2012 15:25:34 +0000 (12 17:25 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 12 Nov 2012 15:25:34 +0000 (12 17:25 +0200)
tree52dd6a03fab8b8ab3bd61db62a184d0f8e0b10c6
parent2e6625b527f5ad134e28af5c2eba0349c640c942
Fix bug #12867 with crashes due to large field width in mode-line format.

 src/xdisp.c (decode_mode_spec): Limit the value of WIDTH argument
 passed to pint2str and pint2hrstr to be at most the size of the
 frame's decode_mode_spec_buffer.  This avoids crashes with very
 large values of FIELD_WIDTH argument to decode_mode_spec.
src/ChangeLog
src/xdisp.c