bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segfault when resizing the terminal


From: Vitezslav Crhonek
Subject: Segfault when resizing the terminal
Date: Thu, 18 Oct 2007 15:15:51 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)

Hi all,

Info crashes when resizing terminal.

I saw patch for texifo-8.2 and related mailing list discussion,
but the problem still persists in texinfo-4.11, see:

https://bugzilla.redhat.com/show_bug.cgi?id=243971

For me, it crashes only when window height is small (about 4).
Width doesn't matter in my case. After some debugging I
realized, that value in windows->height is smaller than
zero (-2) during display_update_one_window function, which
leads to fall.

Attached patch is not solving the core of the problem, only
hiding its consequence and avoiding segfault.

If somebody has a time and is interested, I think problem is
somewhere in window.c functions, where window->height is set,
but I didn't find out where yet and don't know, when I'll spare
some time to look at it in detail again...

Best regards,
Vitezslav Crhonek
--- texinfo-4.11/info/display.c.pokus   2007-07-01 23:20:29.000000000 +0200
+++ texinfo-4.11/info/display.c 2007-10-17 16:39:07.000000000 +0200
@@ -131,6 +131,9 @@
   int pl_ignore = 0;           /* How many chars use zero width on screen. */
   int allocated_win_width;
   DISPLAY_LINE **display = the_display;
+  
+  if (win->height <= 0)
+    win->height = 0;
 
   /* If display is inhibited, that counts as an interrupted display. */
   if (display_inhibited)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]