git-svn: trunk@1654
Tomasz Kojm authored on 2005/07/20 03:17:11... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Tue Jul 19 20:15:43 CEST 2005 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamscan/clamscan.c: verify arguments passed to --max-dir-recursion and |
|
4 |
+ --max-ratio (problem reported by Jo Mills |
|
5 |
+ <Jonathan.Mills*frequentis.com>) |
|
6 |
+ |
|
1 | 7 |
Tue Jul 19 09:55:52 CEST 2005 (acab) |
2 | 8 |
------------------------------------ |
3 | 9 |
* libclamav/fsg.c: Fix possible integer overflow. Reported by Alex Wheeler. |
... | ... |
@@ -136,6 +136,17 @@ int clamscan(struct optstruct *opt) |
136 | 136 |
return 40; |
137 | 137 |
} |
138 | 138 |
|
139 |
+ if(optl(opt, "max-dir-recursion")) |
|
140 |
+ if(!isnumb(getargl(opt, "max-dir-recursion"))) { |
|
141 |
+ logg("!--max-dir-recursion requires natural number.\n"); |
|
142 |
+ return 40; |
|
143 |
+ } |
|
144 |
+ |
|
145 |
+ if(optl(opt, "max-ratio")) |
|
146 |
+ if(!isnumb(getargl(opt, "max-ratio"))) { |
|
147 |
+ logg("!--max-ratio requires natural number.\n"); |
|
148 |
+ return 40; |
|
149 |
+ } |
|
139 | 150 |
|
140 | 151 |
memset(&claminfo, 0, sizeof(struct s_info)); |
141 | 152 |
|