Browse code

textnorm.c: initialiaze each field scanners.c: decrease limit on scanscript

git-svn: trunk@3652

Török Edvin authored on 2008/02/19 03:48:52
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Feb 18 19:45:06 EET 2008 (edwin)
2
+------------------------------------
3
+  * libclamav/textnorm.c: initialiaze each field
4
+	      scanners.c: decrease limit on scanscript
5
+
1 6
 Mon Feb 18 12:39:39 CET 2008 /acab)
2 7
 -----------------------------------
3 8
   * libclamav/nsis: Use system zconf.h to allow building on HPUX
... ...
@@ -993,8 +993,8 @@ static int cli_scanscript(int desc, cli_ctx *ctx)
993 993
 	}
994 994
 
995 995
 	/* don't normalize files that are too large */
996
-	if(sb.st_size > 10485760) {
997
-		cli_dbgmsg("cli_scanscript: exiting (file larger than 10 MB)\n");
996
+	if(sb.st_size > 409600) {
997
+		cli_dbgmsg("cli_scanscript: exiting (file larger than 400 kB)\n");
998 998
 		return CL_CLEAN;
999 999
 	}
1000 1000
 
... ...
@@ -36,6 +36,7 @@ int text_normalize_init(struct text_norm_state *state, unsigned char *out, size_
36 36
 	}
37 37
 	state->out = out;
38 38
 	state->out_len = out_len;
39
+	state->out_pos = 0;
39 40
 	state->space_written = 0;
40 41
 	return CL_SUCCESS;
41 42
 }