From 325202732506c35fec0a7bd772d218eaf0ac659f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 12 Nov 2012 17:25:34 +0200 Subject: 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 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ChangeLog') diff --git a/src/ChangeLog b/src/ChangeLog index 9e0f92f557e..494b2179516 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2012-11-12 Eli Zaretskii + + * 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. + (Bug#12867) + 2012-11-07 Martin Rudalics * window.c (Fsplit_window_internal): Set combination limit of -- cgit v1.2.1