Browse code

libclamav/dlp.c: disable the test for ssn_max_group (bb#1355)

git-svn: trunk@4629

Tomasz Kojm authored on 2009/01/22 23:31:19
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Jan 22 15:52:14 CET 2009 (tk)
2
+---------------------------------
3
+ * libclamav/dlp.c: disable the test for ssn_max_group (bb#1355)
4
+
1 5
 Thu Jan 22 15:39:06 CET 2009 (tk)
2 6
 ---------------------------------
3 7
  * shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)
... ...
@@ -70,6 +70,7 @@ while ($i =~ s/(\d{3}) (\d{2})//) {
70 70
 #define MAX_AREA 772
71 71
  
72 72
 /* array of max group numbers for a given area number */
73
+/*
73 74
 static int ssn_max_group[MAX_AREA+1] = { 0,
74 75
     6, 6, 4, 8, 8, 8, 6, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 
75 76
     90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 88, 88, 88, 88, 72, 72, 72, 72, 
... ...
@@ -112,6 +113,7 @@ static int ssn_max_group[MAX_AREA+1] = { 0,
112 112
     28, 18, 18, 10, 14, 10, 10, 10, 10, 10, 9, 9, 3, 1, 5, 5, 5, 5, 5, 
113 113
     5, 3, 3, 82, 82, 66, 66, 64, 64, 64, 64, 64
114 114
 };
115
+*/
115 116
 
116 117
 
117 118
 
... ...
@@ -353,9 +355,10 @@ int dlp_is_valid_ssn(const unsigned char *buffer, int length, int format)
353 353
             retval = 0;
354 354
     }
355 355
     
356
+    /*
356 357
     if(group_number > ssn_max_group[area_number])
357 358
         retval = 0;
358
-   
359
+    */
359 360
     if(retval)
360 361
 	cli_dbgmsg("dlp_is_valid_ssn: SSN_%s: %s\n", format == SSN_FORMAT_HYPHENS ? "HYPHENS" : "STRIPPED", numbuf);
361 362