Browse code

update

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@988 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/10/11 11:36:19
Showing 3 changed files
... ...
@@ -2,6 +2,16 @@ Note: This README/NEWS file refers to the source tarball. Some things described
2 2
 here may not be available in binary packages.
3 3
 --
4 4
 
5
+0.80rc4
6
+-------
7
+
8
+Improvements in this release include better JPEG exploit verification,
9
+faster base64 decoding, support for GNU tar files, updated on-access scanner,
10
+and others.
11
+
12
+--
13
+The ClamAV team (http://www.clamav.net/team.html)
14
+
5 15
 0.80rc3
6 16
 -------
7 17
 
... ...
@@ -2,6 +2,16 @@ Note: This README/NEWS file refers to the source tarball. Some things described
2 2
 here may not be available in binary packages.
3 3
 --
4 4
 
5
+0.80rc4
6
+-------
7
+
8
+Improvements in this release include better JPEG exploit verification,
9
+faster base64 decoding, support for GNU tar files, updated on-access scanner,
10
+and others.
11
+
12
+--
13
+The ClamAV team (http://www.clamav.net/team.html)
14
+
5 15
 0.80rc3
6 16
 -------
7 17
 
... ...
@@ -249,8 +249,8 @@ void *cli_malloc(size_t size)
249 249
 	void *alloc;
250 250
 
251 251
 
252
-    if(size > MAX_ALLOCATION) {
253
-	cli_errmsg("Attempt to allocate more than %d bytes. Please report to bugs@clamav.net\n", MAX_ALLOCATION);
252
+    if(size > MAX_ALLOCATION || size < 0) {
253
+	cli_errmsg("Attempt to allocate %d bytes. Please report to bugs@clamav.net\n", size);
254 254
 	return NULL;
255 255
     }
256 256
 
... ...
@@ -268,8 +268,9 @@ void *cli_calloc(size_t nmemb, size_t size)
268 268
 {
269 269
 	void *alloc;
270 270
 
271
-    if(size > MAX_ALLOCATION) {
272
-	cli_errmsg("Attempt to allocate more than %d bytes. Please report to bugs@clamav.net\n", MAX_ALLOCATION);
271
+
272
+    if(size > MAX_ALLOCATION || size < 0) {
273
+	cli_errmsg("Attempt to allocate %d bytes. Please report to bugs@clamav.net\n", size);
273 274
 	return NULL;
274 275
     }
275 276
 
... ...
@@ -287,10 +288,6 @@ void *cli_realloc(void *ptr, size_t size)
287 287
 {
288 288
 	void *alloc;
289 289
 
290
-    if(size > MAX_ALLOCATION) {
291
-	cli_errmsg("Attempt to allocate more than %d bytes. Please report to bugs@clamav.net\n", MAX_ALLOCATION);
292
-	return NULL;
293
-    }
294 290
 
295 291
     alloc = realloc(ptr, size);
296 292