mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +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:]
|
seq1 = seq1[count:]
|
||||||
seq2 = seq2[count:]
|
seq2 = seq2[count:]
|
||||||
|
|
||||||
seqMatcher.set_seq1(seq1)
|
while True:
|
||||||
seqMatcher.set_seq2(seq2)
|
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)
|
ratio = round(seqMatcher.quick_ratio(), 3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user