Article View: comp.sources.bugs
Article #230bug in unzipbsd + fix
From: George Phillips
Date: Mon, 13 Nov 1989 06:51
Date: Mon, 13 Nov 1989 06:51
20 lines
1096 bytes
1096 bytes
Unzipbsd (a pkzip unzipper) assumes a particular implementation of memcpy
which made it fail on our Sun 3's. The cheap fix is to define a version
of memcpy that keeps unzipbsd happy. The real fix should get rid of the
memcpy assumption. I put the following bit of code at the start of
unzipbsd.c and it works now.
memcpy(s1, s2, n)
register char* s1;
register char* s2;
register int n;
{
while (n-- > 0)
*s1++ = *s2++;
}
I haven't been able to report the bug to the author, so if he's listening...
--
George Phillips phillips@cs.ubc.ca {alberta,uw-beaver,uunet}!ubc-cs!phillips
Technical Details
Message-ID:
<5611@ubc-cs.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!ubc-cs!faculty.cs.ubc.ca!phillipsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!ubc-cs!faculty.cs.ubc.ca!phillips From: phillips@faculty.cs.ubc.ca (George Phillips) Newsgroups: comp.sources.bugs Subject: bug in unzipbsd + fix Summary: bad assumption about memcpy Message-ID: <5611@ubc-cs.UUCP> Date: 13 Nov 89 06:51:40 GMT Sender: news@cs.ubc.ca Reply-To: phillips@cs.ubc.ca (George Phillips) Organization: UBC Department of Computer Science, Vancouver, B.C., Canada Lines: 20