summaryrefslogtreecommitdiff
path: root/archivers/unalz/patches
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2005-12-03 15:06:42 +0000
committersalo <salo@pkgsrc.org>2005-12-03 15:06:42 +0000
commita9d32819e2c9f3e0270c4a80e91565e1e9c21040 (patch)
treee641491f3fadd05ab59e3ecf44fc7dec3de8f28d /archivers/unalz/patches
parent22b5045e6f4c526ab8668dcbfa5f0409a912bc82 (diff)
downloadpkgsrc-a9d32819e2c9f3e0270c4a80e91565e1e9c21040.tar.gz
Security update to version 0.53.
Changes: - fix buffer overflow (CVE-2005-3862)
Diffstat (limited to 'archivers/unalz/patches')
-rw-r--r--archivers/unalz/patches/patch-ab30
1 files changed, 5 insertions, 25 deletions
diff --git a/archivers/unalz/patches/patch-ab b/archivers/unalz/patches/patch-ab
index 717312c2ccd..cecb07ab965 100644
--- a/archivers/unalz/patches/patch-ab
+++ b/archivers/unalz/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.8 2005/11/07 13:43:41 joerg Exp $
+$NetBSD: patch-ab,v 1.9 2005/12/03 15:06:42 salo Exp $
---- UnAlz.cpp.orig 2005-07-23 15:27:49.000000000 +0000
-+++ UnAlz.cpp
+--- UnAlz.cpp.orig 2005-11-21 14:18:13.000000000 +0100
++++ UnAlz.cpp 2005-12-03 15:57:40.000000000 +0100
@@ -1,6 +1,6 @@
//#include "stdafx.h"
-#include "zlib/zlib.h"
@@ -11,18 +11,7 @@ $NetBSD: patch-ab,v 1.8 2005/11/07 13:43:41 joerg Exp $
#include "UnAlz.h"
// utime ÇÔ¼ö ó¸®
-@@ -30,6 +30,10 @@
- # include <errno.h> // iconv.h ¶§¹®¿¡ ÇÊ¿ä
- #endif
-
-+#if defined(__NetBSD__)
-+# include <sys/param.h> // __NetBSD_Version__
-+# include <errno.h> // iconv.h ¶§¹®¿¡ ÇÊ¿ä
-+#endif
-
- #define swapint64(Data) (INT64) ( (((Data)&0x00000000000000FFLL) << 56) | (((Data)&0x000000000000FF00LL) << 40) | (((Data)&0x0000000000FF0000LL) << 24) | (((Data)&0x00000000FF000000LL) << 8) | (((Data)&0x000000FF00000000LL) >> 8) | (((Data)&0x0000FF0000000000LL) >> 24) | (((Data)&0x00FF000000000000LL) >> 40) | (((Data)&0xFF00000000000000LL) >> 56) )
- #define swapint32(a) ((((a)&0xff)<<24)+(((a>>8)&0xff)<<16)+(((a>>16)&0xff)<<8)+(((a>>24)&0xff)))
-@@ -39,13 +43,13 @@
+@@ -43,13 +43,13 @@
//// byte-order : little to host ////
////////////////////////////////////////////////////////////////////////////
@@ -33,17 +22,8 @@ $NetBSD: patch-ab,v 1.8 2005/11/07 13:43:41 joerg Exp $
inline UINT64 unalz_le64toh(UINT64 a){return a;}
#endif
--#ifdef __FreeBSD__
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
# include <sys/endian.h>
inline UINT16 unalz_le16toh(UINT16 a){return le16toh(a);}
inline UINT32 unalz_le32toh(UINT32 a){return le32toh(a);}
-@@ -416,7 +420,7 @@ BOOL CUnAlz::ReadLocalFileheader()
- size_t size;
- char inbuf[ICONV_BUF_SIZE];
- char outbuf[ICONV_BUF_SIZE];
--#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__APPLE__)
-+#if defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__NetBSD__)
- const char *inptr = inbuf;
- #else
- char *inptr = inbuf;