[Cracklib-devel] Patch For a Bug in crack-lib's Python String Distance Calculation
Brought to you by:
nneul
From: Pascal M. <pmu...@go...> - 2014-09-24 17:43:42
|
Hi cracklib-devel, I've found and fixed a bug in cracklib.py's string distance calculation. See patch below: Index: cracklib/python/cracklib.py =================================================================== --- cracklib/python/cracklib.py (revision 229) +++ cracklib/python/cracklib.py (working copy) @@ -58,7 +58,7 @@ else: cval = old[i - 1] - if j == 0 or len(new) <= i: + if j == 0 or len(new) <= j: dval = 0 else: dval = new[j - 1] -- Pascal Muetschard <pmu...@go...> |