mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch for an Issue #956
This commit is contained in:
parent
1a8b58fca6
commit
34ce774acd
|
@ -132,8 +132,15 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
|
|||
seq1 = seq1[count:]
|
||||
seq2 = seq2[count:]
|
||||
|
||||
while True:
|
||||
try:
|
||||
seqMatcher.set_seq1(seq1)
|
||||
seqMatcher.set_seq2(seq2)
|
||||
except MemoryError:
|
||||
seq1 = seq1[:len(seq1) / 4]
|
||||
seq2 = seq2[:len(seq2) / 4]
|
||||
else:
|
||||
break
|
||||
|
||||
ratio = round(seqMatcher.quick_ratio(), 3)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user