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

git-svn: trunk@4629
0.95
Tomasz Kojm 17 years ago
parent 0d06ef19f8
commit 63375d8d31
  1. 4
      ChangeLog
  2. 5
      libclamav/dlp.c

@ -1,3 +1,7 @@
Thu Jan 22 15:52:14 CET 2009 (tk)
---------------------------------
* libclamav/dlp.c: disable the test for ssn_max_group (bb#1355)
Thu Jan 22 15:39:06 CET 2009 (tk) Thu Jan 22 15:39:06 CET 2009 (tk)
--------------------------------- ---------------------------------
* shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316) * shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)

@ -70,6 +70,7 @@ while ($i =~ s/(\d{3}) (\d{2})//) {
#define MAX_AREA 772 #define MAX_AREA 772
/* array of max group numbers for a given area number */ /* array of max group numbers for a given area number */
/*
static int ssn_max_group[MAX_AREA+1] = { 0, static int ssn_max_group[MAX_AREA+1] = { 0,
6, 6, 4, 8, 8, 8, 6, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 6, 6, 4, 8, 8, 8, 6, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 88, 88, 88, 88, 72, 72, 72, 72, 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,
28, 18, 18, 10, 14, 10, 10, 10, 10, 10, 9, 9, 3, 1, 5, 5, 5, 5, 5, 28, 18, 18, 10, 14, 10, 10, 10, 10, 10, 9, 9, 3, 1, 5, 5, 5, 5, 5,
5, 3, 3, 82, 82, 66, 66, 64, 64, 64, 64, 64 5, 3, 3, 82, 82, 66, 66, 64, 64, 64, 64, 64
}; };
*/
@ -353,9 +355,10 @@ int dlp_is_valid_ssn(const unsigned char *buffer, int length, int format)
retval = 0; retval = 0;
} }
/*
if(group_number > ssn_max_group[area_number]) if(group_number > ssn_max_group[area_number])
retval = 0; retval = 0;
*/
if(retval) if(retval)
cli_dbgmsg("dlp_is_valid_ssn: SSN_%s: %s\n", format == SSN_FORMAT_HYPHENS ? "HYPHENS" : "STRIPPED", numbuf); cli_dbgmsg("dlp_is_valid_ssn: SSN_%s: %s\n", format == SSN_FORMAT_HYPHENS ? "HYPHENS" : "STRIPPED", numbuf);

Loading…
Cancel
Save