Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Mon, 22 Jan 2001 16:24:53 +0000 (16:24 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Mon, 22 Jan 2001 16:24:53 +0000 (16:24 +0000)
commit9d9daf7a1fdb8f53eb6b3567e5b0556a99249125
tree4c20e1c2531b3db8a951ca644c2ff3483af4c944
parentc779248ebf94046a490f5bf3b6b33b7d661aae2d
Author: Kev <klmitch@mit.edu>
Log message:

Remove msgq_map(), since we're using only msgq_mapiov().  Tweak some buffer
length calculations to prevent off-by-one errors.  Unfortunately, these
possible off-by-one errors cannot possibly cause the problems we're seeing,
so add some extra asserts and an incredibly ugly hack to detect the
problem's signature--a pointer transmuted to 0x8000a0d, corresponding to
\r\n\0 (+ first byte of pointer) as stored in memory.

Testing:

The changes compile and run--but we *want* this patch to dump core!  Make
absolutely sure you compile with -g.  Hopefully this'll catch the culprit,
or at least bring us one step closer to finding the problem.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@380 c9e4aea6-c8fd-4c43-8297-357d70d61c8c
ChangeLog
include/msgq.h
ircd/msgq.c