HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Nasty bug in UnZip 6.00d ("BETA") - BAD_DIRSIZE, BAD_DIRTYPE, ...

 
Steven Schweda
Honored Contributor

Nasty bug in UnZip 6.00d ("BETA") - BAD_DIRSIZE, BAD_DIRTYPE, ...

The source kit for UnZip 6.00d (pre-release,
"BETA"):

ftp://ftp.info-zip.org/pub/infozip/beta/unzip60d.zip
http://downloads.sourceforge.net/infozip/unzip60d.zip

contains a nasty bug. The bug was fixed last
year, but apparently the fix got lost, and I
didn't notice it soon enough. When unpacking a
"-V" archive on a VMS system, UnZip may produce
corrupt directories. ANALYZE /DISK_STRUCTURE
will emit complaints like BAD_DIRSIZE,
BAD_DIRTYPE, and so on, and something like
ANALYZE /DISK_STRUCTURE /REPAIR will be needed
to straighten things out again.

This problem is likely to occur when more files
existed in a directory than were included in
the archive when Zip ("-V") created the
archive. Then, when UnZip expands the archive,
it may erroneously restore some directory
attributes other than date-time (for example,
size!), and the result is a corrupt directory.

A new (probably better/safer) [.vms]vms.c
file should be available here:

ftp://antinode.org/info-zip/unzip60d/vms/vms.c
http://antinode.org/ftp/info-zip/unzip60d/vms/vms.c

I'm sorry for the trouble. With any luck (and
a bit more carefullness), it'll be right in
6.00e and up.
1 REPLY
Steven Schweda
Honored Contributor

Re: Nasty bug in UnZip 6.00d ("BETA") - BAD_DIRSIZE, BAD_DIRTYPE, ...

Only an announcement.