Browse code

increase default compression ratio limit from 200 to 250

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

Tomasz Kojm authored on 2005/01/18 07:32:19
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Jan 17 23:18:17 CET 2005 (tk)
2
+---------------------------------
3
+  * clamscan/manager.c: increase default compression ratio limit from 200 to 250
4
+
1 5
 Sun Jan 16 06:28:59 CET 2005 (tk)
2 6
 ---------------------------------
3 7
   * libclamav/pe.c: attempt to detect W32.Parite.B using cryptanalysis (thanks
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- *  Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net>
2
+ *  Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net>
3 3
  *
4 4
  *  This program is free software; you can redistribute it and/or modify
5 5
  *  it under the terms of the GNU General Public License as published by
... ...
@@ -159,7 +159,7 @@ int scanmanager(const struct optstruct *opt)
159 159
     if(optl(opt, "max-ratio"))
160 160
         limits->maxratio = atoi(getargl(opt, "max-ratio"));
161 161
     else
162
-        limits->maxratio = 200;
162
+        limits->maxratio = 250;
163 163
 
164 164
     /* set options */
165 165
 
... ...
@@ -1,5 +1,5 @@
1 1
 .\" Manual page created by Tomasz Kojm, 14/15 IV 2002
2
-.TH "clamscan" "1" "November 9, 2004" "Tomasz Kojm" "Clam AntiVirus"
2
+.TH "clamscan" "1" "January 17, 2005" "Tomasz Kojm" "Clam AntiVirus"
3 3
 .SH "NAME"
4 4
 .LP 
5 5
 clamscan \- scan files and directories against viruses
... ...
@@ -104,7 +104,7 @@ Extract first #n kilobytes from each archive. You may give the number in megabyt
104 104
 Set archive recursion level limit. This option protects your system against DoS attacks (default: 8).
105 105
 .TP 
106 106
 \fB\-\-max\-ratio=#n\fR
107
-Set maximum archive compression ratio limit. This option protects your system against DoS attacks (default: 200).
107
+Set maximum archive compression ratio limit. This option protects your system against DoS attacks (default: 250).
108 108
 .TP 
109 109
 \fB\-\-unzip[=FULLPATH]\fR
110 110
 In most cases you don't need this option \- the built\-in unarchiver will do extract Zip archives. This option however may be used as a backup for internal unpacker \- see the full documentation for more information. When enabled without an argument, unzip program will be searched in $PATH. If unzip cannot be found in $PATH, you must force it with =pathname. Remember about '=' between the option and an argument.