Ethereal-dev: [ethereal-dev] libpcap

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Uwe Girlich <Uwe.Girlich@xxxxxxxxxxx>
Date: Wed, 6 Sep 2000 07:50:31 +0200
Hello all!

I'm currently porting ethereal to ReliantUNIX 5.43 but come from one problem
into the next. The current thing is libpcap. In optimize.c, function
opt_init(), last line states
        vnode_base = (struct valnode *)malloc(maxval * sizeof(*vmap));
This is consistent in 0.4 and 0.5 too. The problem is, that the variable
vmap is a pointer to a vmapinfo structure (8 bytes) but vnode_base is a
pointer to a valnode structure (20 bytes). So we have overwriters all over
the place. How could this ever work?

I'm no subscriber of tcp-workers but I hope someone in this mailing list may
forward it to the right place. Thanks!

Bye, Uwe