[CURRENT-20021016] innfeed dumps core
Russ Allbery
rra at stanford.edu
Thu Oct 17 18:35:39 UTC 2002
Jeffrey M Vinocur <jeff at litech.org> writes:
> On 17 Oct 2002, Bettina Fink wrote:
>> $2 = 0x2 <Address 0x2 out of bounds>
> (Is there any way this could be an offset from a null pointer? I can't
> think of one.)
Hm.
const char *hostPeerName (Host host)
{
ASSERT (host != NULL) ;
return host->params->peerName ;
}
and peerName is set to:
peerName = hostPeerName (cxn->myHost) ;
but host->params is a struct that looks like:
typedef struct host_param_s
{
char *peerName;
char *ipName;
/* ... */
}
so I don't see how one gets an offset of 2 out of that.
Nonetheless, I think there's something wrong with the host struct there.
I did do a huge change to a lot of the reporting functions a bit back, and
that may have broken something, but I mostly just changed calls to syslog
to calls to notice/warn/die and moved the messages from msgs.h into the
code itself.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list