Thread View: gnu.epoch.misc
1 messages
1 total messages
Started by t e bennett
Thu, 30 Apr 1992 18:54
4.0p1 core dump and fix
Author: t e bennett
Date: Thu, 30 Apr 1992 18:54
Date: Thu, 30 Apr 1992 18:54
39 lines
1500 bytes
1500 bytes
xdispepoch.c can deref a null ptr and cause core dumps.
This is very similar to a previously fixed problem
in xdispepoch.c.
Patch:
*** xdispepoch.c~ Mon Apr 27 10:08:02 1992
--- xdispepoch.c Thu Apr 30 14:45:38 1992
***************
*** 1980,1990 ****
{
int i;
struct line_header *l = XLINE(w->lines);
! struct char_block *cb;
i = ws->cursor_y;
while (l && i--) l = l->next;
! cb = l->body;
i = ws->cursor_x;
while (cb && i--) cb = cb->next;
--- 1980,1991 ----
{
int i;
struct line_header *l = XLINE(w->lines);
! struct char_block *cb = 0;
i = ws->cursor_y;
while (l && i--) l = l->next;
! if (l)
! cb = l->body;
i = ws->cursor_x;
while (cb && i--) cb = cb->next;
--
--tbennett tony.bennett@East.Sun.COM mailstop: RTP-NC
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads