git-svn: trunk@3818
aCaB authored on 2008/04/29 00:28:04... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Mon Apr 28 16:25:08 CEST 2008 (acab) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/unzip.c: check for unprefixed bz2 - bb#995 |
|
4 |
+ |
|
1 | 5 |
Mon Apr 28 16:14:39 CEST 2008 (acab) |
2 | 6 |
------------------------------------ |
3 | 7 |
* libclamav/inflate64: avoid collisions on AIX - bb#947 |
... | ... |
@@ -177,6 +177,12 @@ static int unz(uint8_t *src, uint32_t csize, uint32_t usize, uint16_t method, ui |
177 | 177 |
|
178 | 178 |
|
179 | 179 |
#if HAVE_BZLIB_H |
180 |
+#ifdef NOBZ2PREFIX |
|
181 |
+#define BZ2_bzReadOpen bzReadOpen |
|
182 |
+#define BZ2_bzReadClose bzReadClose |
|
183 |
+#define BZ2_bzRead bzRead |
|
184 |
+#endif |
|
185 |
+ |
|
180 | 186 |
case ALG_BZIP2: { |
181 | 187 |
bz_stream strm; |
182 | 188 |
memset(&strm, 0, sizeof(strm)); |