Browse code

fix stack corruption on win32 (bb#201)

git-svn: trunk@2591

Tomasz Kojm authored on 2007/01/07 01:27:11
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Jan  6 17:22:30 CET 2007 (tk)
2
+---------------------------------
3
+  * libclamav: fix stack corruption on win32 (bb#201), patch from NJH
4
+
1 5
 Sat Jan  6 16:57:23 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * freshclam: initial version of mirror manager; new option --list-mirrors
... ...
@@ -322,4 +322,8 @@ void make_decode_tables(unsigned char *len_tab, struct Decode *decode, int size)
322 322
 void unp_write_buf_old(unpack_data_t *unpack_data);
323 323
 int decode_number(unpack_data_t *unpack_data, struct Decode *decode);
324 324
 
325
+#ifdef HAVE_PRAGMA_PACK
326
+#pragma pack()
327
+#endif
328
+
325 329
 #endif
... ...
@@ -205,4 +205,8 @@ ssize_t zip_file_read(zip_file *fp, char *buf, size_t len);
205 205
 int zip_file_close(zip_file *fp);
206 206
 int zip_dir_close(zip_dir *dir);
207 207
 
208
+#ifdef HAVE_PRAGMA_PACK
209
+#pragma pack()
210
+#endif
211
+
208 212
 #endif /* __UNZIP_H */