Article View: news.software.nn
Article #856nnmaster may segfault on alias to nonexistent group in active file
From: 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
Technical Details
Message-ID:
<1990Sep3.181447.4514@sics.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!sics.se!sics.se!jwShow Full Headers
Complete Article Headers
Message-ID: <1990Sep3.181447.4514@sics.se> Subject: nnmaster may segfault on alias to nonexistent group in active file Date: Mon, 03 Sep 1990 18:14:47 +0000 From: jw@sics.se (Johan Widen) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!sics.se!sics.se!jw Newsgroups: news.software.nn Sender: news@sics.se Distribution: news Organization: Swedish Institute of Computer Science, Kista Lines: 27 Posted: Mon Sep 3 19:14:47 1990