Thread View: net.bugs.usg
1 messages
1 total messages
Started by Doug Gwyn
Tue, 20 May 1986 20:49
SVR2 (and older) nroff bug
Author: Doug Gwyn
Date: Tue, 20 May 1986 20:49
Date: Tue, 20 May 1986 20:49
32 lines
1384 bytes
1384 bytes
Dave Yost found a bug in nroff that can cause a core dump on some machines.
In file n1.c, init1() contains a call to mchbits(), which uses device-
specific data that has not yet been set up! This file is shared by otroff,
which therefore has the same bug. BWK seems to have fixed it in new troff.
/*
* roff.src - v 2.9 of 9/9/83
...
*/
...
#ifdef NROFF
char ntversion[] = "@(#)nroff: n1.c 2.9";
#else
char ntversion[] = "@(#)otroff: n1.c 2.9";
#endif
...
int version = 29; /* nroff/troff version tag */
...
init1(a) /* DAG -- there was a FF at the beginning of this line! */
char a;
{
...
trtab[UNPAD] = ' ';
/* mchbits(); /* DAG -- device info not available here; moved to init2() (fixes bug reported by Dave Yost) */
...
}
init2() /* DAG -- FF here too! */
{
...
ptinit();
mchbits(); /* DAG -- moved here from init1() */
...
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