Browse code

libclamav/dlp.c: fix detection of single stripped SSNs (bb#1354)

git-svn: trunk@4618

Tomasz Kojm authored on 2009/01/16 23:07:46
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Jan 16 15:26:50 CET 2009 (tk)
2
+---------------------------------
3
+ * libclamav/dlp.c: fix detection of single stripped SSNs (bb#1354)
4
+
1 5
 Mon Jan  5 20:33:04 CET 2009 (tk)
2 6
 ---------------------------------
3 7
  * libclamav/str.c: return token count in cli_strtokenize()
... ...
@@ -366,7 +366,7 @@ static int contains_ssn(const unsigned char *buffer, int length, int format, int
366 366
     const unsigned char *end;
367 367
     int count = 0;
368 368
     
369
-    if(buffer == NULL || length < 11)
369
+    if(buffer == NULL || length < 9)
370 370
         return 0; 
371 371
 
372 372
     end = buffer + length;