mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-28 04:20:58 +00:00
Minor patch
This commit is contained in:
parent
a3fc171665
commit
0b2b3e956f
4 changed files with 69 additions and 4 deletions
|
|
@ -172,6 +172,12 @@ class BigArray(list):
|
|||
except OSError:
|
||||
pass
|
||||
|
||||
# Note: the formerly on-disk chunk is now an in-memory list (and its file has been
|
||||
# removed), so any cache entry still pointing at it is stale; dropping it prevents
|
||||
# serving outdated data if that chunk index is later re-dumped (e.g. append after pop)
|
||||
if isinstance(self.cache, Cache) and self.cache.index == idx:
|
||||
self.cache = None
|
||||
|
||||
return self.chunks[-1].pop()
|
||||
|
||||
def index(self, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue