File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ fad6640f60eac8ad1b65895cbccc39154864843a2a0b0f2ac596d3227edcd4f6 lib/controller
163
163
1947e6c69fbc2bdce91d2836e5c9c9535e397e9271ae4b4ef922f7a01857df5e lib/controller/handler.py
164
164
4608f21a4333c162ab3c266c903fda4793cc5834de30d06affe9b7566dd09811 lib/controller/__init__.py
165
165
216c9399853b7454d36dcb552baf9f1169ec7942897ddc46504684325cb6ce00 lib/core/agent.py
166
- e1631a3651de5a35a54ff9a8fd83109e06407323b09c3ab758657c5454cc050b lib/core/bigarray.py
166
+ a61a74ba17331c419c03bc90d829ba74d183787f39fd902f50198202cb5b26c7 lib/core/bigarray.py
167
167
8920eb3115ecd25933084af986f453362aa55a4bd15bfb9e75673239bd206acc lib/core/common.py
168
168
d53a8aecab8af8b8da4dc1c74d868f70a38770d34b1fa50cae4532cae7ce1c87 lib/core/compat.py
169
169
ebe518089733722879f5a13e73020ebe55d46fb7410cacf292ca4ea1d9d1c56a lib/core/convert.py
@@ -186,7 +186,7 @@ c4bfb493a03caf84dd362aec7c248097841de804b7413d0e1ecb8a90c8550bc0 lib/core/readl
186
186
d1bd70c1a55858495c727fbec91e30af267459c8f64d50fabf9e4ee2c007e920 lib/core/replication.py
187
187
1d0f80b0193ac5204527bfab4bde1a7aee0f693fd008e86b4b29f606d1ef94f3 lib/core/revision.py
188
188
d2eb8e4b05ac93551272b3d4abfaf5b9f2d3ac92499a7704c16ed0b4f200db38 lib/core/session.py
189
- 56d26fde979eed26969c77432953e91dfd041b47bfdeb48283c820951751186f lib/core/settings.py
189
+ 37d96cd99b3011c3173ac7ae3992fd3a8aa5caea892e9fd8ab5a1b442dee3aa0 lib/core/settings.py
190
190
1c5eab9494eb969bc9ce118a2ea6954690c6851cbe54c18373c723b99734bf09 lib/core/shell.py
191
191
4eea6dcf023e41e3c64b210cb5c2efc7ca893b727f5e49d9c924f076bb224053 lib/core/subprocessng.py
192
192
cdd352e1331c6b535e780f6edea79465cb55af53aa2114dcea0e8bf382e56d1a lib/core/target.py
Original file line number Diff line number Diff line change @@ -132,6 +132,17 @@ def index(self, value):
132
132
133
133
return ValueError , "%s is not in list" % value
134
134
135
+ def close (self ):
136
+ while self .filenames :
137
+ filename = self .filenames .pop ()
138
+ try :
139
+ self ._os_remove (filename )
140
+ except OSError :
141
+ pass
142
+
143
+ def __del__ (self ):
144
+ self .close ()
145
+
135
146
def _dump (self , chunk ):
136
147
try :
137
148
handle , filename = tempfile .mkstemp (prefix = MKSTEMP_PREFIX .BIG_ARRAY )
@@ -170,8 +181,12 @@ def __setstate__(self, state):
170
181
self .chunks , self .filenames = state
171
182
172
183
def __getitem__ (self , y ):
184
+ length = len (self )
185
+ if length == 0 :
186
+ raise IndexError ("BigArray index out of range" )
187
+
173
188
while y < 0 :
174
- y += len ( self )
189
+ y += length
175
190
176
191
index = y // self .chunk_length
177
192
offset = y % self .chunk_length
Original file line number Diff line number Diff line change 19
19
from thirdparty import six
20
20
21
21
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22
- VERSION = "1.9.5.18 "
22
+ VERSION = "1.9.5.19 "
23
23
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
24
24
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
25
25
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments