Commits

Alexander Plavin  committed 24bd9ae

New test and fix for it

  • Participants
  • Parent commits f66b5c1
  • Branches words-in-alphabet

Comments (0)

Files changed (2)

     s[len] = 0x80;
     s_u16.sF = len * 8;
 
-
     ////////////////////////////////////////
     // try all symbols at last position
 	for (j = 0; j < ${alphabet[-1].num}; j++)
 			result[atomic_inc(res_ind)] = start * ${alphabet[-1].num} + j + 1;
 		}
 
+        s[len] = 0;
+
 		len = lenNoLast;
         word_len = WORD_LEN_L(j + 1);
         for (i = 0; i < word_len; i++, len++)
         {
             s[len] = ALPHABET_L(j + 1)[i];
         }
+
+        s[len] = 0x80;
+        s_u16.sF = len * 8;
 	}
 	////////////////////////////////////////
 }

File test_main.py

         xx,link,Link,ololo
         ed,,
         in,,
+        ''')
+
+    def test_11(self):
+        self._test(r'''
+        F:\\Alexander\\pass dictionaries\\passwords\\500-worst-passwords.txt
         ''')