Date: Fri, 9 May 1997 16:28:53 -0700 (PDT) From: Timothy Moore <moore@WOLFENET.com> To: freebsd-hackers@FreeBSD.ORG Subject: Re: g++ shared library segfaults Message-ID: <199705092328.QAA24652@gonzo.wolfenet.com> In-Reply-To: <199705092251.PAA05670@rah.star-gate.com> (message from Amancio Hasty on Fri, 09 May 1997 15:51:51 -0700)
index | next in thread | previous in thread | raw e-mail
Date: Fri, 09 May 1997 15:51:51 -0700
From: Amancio Hasty <hasty@rah.star-gate.com>
Hi,
I traced it further more and it looks like a bug in Docviewer.c using
an illegal reference to a local variable.
for (long i = 0; i < count; ++i) {
ViewerColorInfo& info = _color_info->item_ref(i);
if (strcmp(info._name, name) == 0) {
break;
}
}
later on it checks the value of i. I change the scope of i and doc just
fired right up. Will "fix" similar referencs in doc.
Uh, that's not an illegal reference. The scope of i extends to the
end of the containing block, not the end of the "for" statement.
Tim
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705092328.QAA24652>
