Xref: utzoo comp.sources.d:4458 comp.sys.ibm.pc.rt:1271 comp.unix.aix:351 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!woan.austin.ibm.com!ron From: ron@woan.austin.ibm.com (Ronald S. Woan) Newsgroups: comp.sources.d,comp.sys.ibm.pc.rt,comp.unix.aix Subject: unzip for AIX2.2.1/RT Keywords: realloc size field must be non-zero Message-ID: <1191@awdprime.UUCP> Date: 20 Dec 89 18:07:54 GMT Sender: news@awdprime.UUCP Reply-To: @cs.utexas.edu:ibmchs!auschs!woan.austin.ibm.com!ron Followup-To: comp.sources.d Organization: IBM-Austin, AWD Lines: 15 I finally took the time to see why unzip (available from simtel20.arpa in pd2:) core dumped under AIX 2.2.1/RT. It seems that the two realloc calls for the comment tags would cause a segmentation fault if handed a size field of zero on some occasions. You can probably solve this with an if statement but I just changed it to realloc the requested size plus 1 (what's an extra byte among friends). Anyways, all is right with the world once again. Ron +-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+ +------------------------------My Employer----------------------------------+ + Ronald S. Woan (IBM VNET)WOAN AT AUSTIN, (AUSTIN)ron@woan.austin.ibm.com + + outside of IBM @cs.utexas.edu:ibmchs!auschs!woan.austin.ibm.com!ron + + last resort woan@peyote.cactus.org +