1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Fix a bug that causes it to loop on some ill-formed archives.

Submitted by:	Derek M Jones <derek@knosof.co.uk>
This commit is contained in:
Jean-Marc Zucconi 2005-11-12 13:09:06 +00:00
parent 5435e51604
commit 873d90098c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148031
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= zoo
PORTVERSION= 2.10.1
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/arcers/
DISTNAME= zoo-2.10pl1

View File

@ -0,0 +1,12 @@
--- zooext.c~ Sat May 1 05:58:50 1993
+++ zooext.c Sat Nov 12 14:04:17 2005
@@ -184,7 +184,8 @@
this_file = STDOUT; /* standard output */
while (1) {
- frd_dir (&direntry, zoo_file);
+ if (frd_dir (&direntry, zoo_file) < 0)
+ prterror('f', bad_directory);
if (direntry.zoo_tag != ZOO_TAG) {
long currpos, zoolength;
prterror ('F', invalid_header);