[u3b.tech] tcp/ip win3b libnet.a bug

stanonik@nprdc.navy.mil (Ron Stanonik) (09/22/90)

We ran into a another bug in the tcp/ip win3b libnet.a, release 3.0.
The bcopy() merely does a forward copy; eg,

while (cnt--)
  *dst++ = *src++;

This fails for overlapping copies.  Overlapping copies should countdown,
not up; eg

dst += cnt;
src += cnt
while (cnt--)
  *dst-- = *src--;

We ran into this bug while using the bcopy in -lnet for a port of the
4.3bsd dbm library.

Is 3.0 the latest tcp/ip win3b release for 3b2's?

Thanks,

Ron Stanonik
stanonik@nprdc.navy.mil
ucsd!nprdc!stanonik