Thread View: news.software.nn
2 messages
2 total messages
Started by Johan Widen
Mon, 03 Sep 1990 18:14
nnmaster may segfault on alias to nonexistent group in active file
Author: Johan Widen
Date: Mon, 03 Sep 1990 18:14
Date: Mon, 03 Sep 1990 18:14
27 lines
1641 bytes
1641 bytes
I found the following entry in our active file
comp.unix.microport 0000003323 03310 =sysv286
The group 'sysv286' does not exist. I guess what was intended was
comp.unix.microport 0000003323 03310 =comp.unix.sysv286
How did I discover the line? I discovered it because nnmaster was segfaulting.
It tried to deref a null pointer in the following code in active.c
case '=':
gh->master_flag |= M_ALIASED | M_IGNORE_A;
if (old_flag & M_ALIASED) continue;
while (*++cp && isspace(*cp)) cp++;
name = cp;
while (*cp && !isspace(*cp)) cp++;
*cp = NUL;
gh1 = lookup(name);
gh->data_write_offset = (off_t)gh1->group_num;
must_update = 1;
break;
}
lookup("sysv286") will return a null pointer.
This nn-6.4.9.
--
Johan Widen
SICS, PO Box 1263, S-164 28 KISTA, SWEDEN Internet: jw@sics.se
Tel: +46 8 752 15 32 Ttx: 812 61 54 SICS S Fax: +46 8 751 72 30
Re: nnmaster may segfault on alias to nonexistent group in active file
Author: Kim F. Storm
Date: Tue, 04 Sep 1990 12:15
Date: Tue, 04 Sep 1990 12:15
17 lines
1239 bytes
1239 bytes
jw@sics.se (Johan Widen) writes: >I found the following entry in our active file > comp.unix.microport 0000003323 03310 =sysv286 >How did I discover the line? I discovered it because nnmaster was segfaulting. >It tried to deref a null pointer in the following code in active.c Yes, other people have reported this bug. I have rewritten the handling of aliased groups to make fewer assumptions about what is aliased to something else. The new code will be included in patch #10. -- Kim F. Storm <storm@texas.dk> No news is good news, Texas Instruments A/S, Denmark but nn is better!
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