mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Minor fix for BigArray (now accepting negative indexes)
This commit is contained in:
@@ -78,6 +78,8 @@ class BigArray(list):
|
||||
return retval
|
||||
|
||||
def __getitem__(self, y):
|
||||
if y < 0:
|
||||
y += len(self)
|
||||
index = y / BIGARRAY_CHUNK_LENGTH
|
||||
offset = y % BIGARRAY_CHUNK_LENGTH
|
||||
chunk = self.chunks[index]
|
||||
|
||||
Reference in New Issue
Block a user