Skip to content

Commit a569f21

Browse files
committed
Bug fix (--smoke hasn't tested wrapped functions)
1 parent 8092551 commit a569f21

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

lib/core/decorators.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8+
import functools
89
import hashlib
910

1011
from lib.core.threads import getCurrentThreadData
@@ -16,6 +17,7 @@ def cachedmethod(f, cache={}):
1617
Reference: http://code.activestate.com/recipes/325205-cache-decorator-in-python-24/
1718
"""
1819

20+
@functools.wraps(f)
1921
def _(*args, **kwargs):
2022
key = int(hashlib.md5("|".join(str(_) for _ in (f, args, kwargs))).hexdigest(), 16) & 0x7fffffffffffffff
2123
if key not in cache:
@@ -26,6 +28,11 @@ def _(*args, **kwargs):
2628
return _
2729

2830
def stackedmethod(f):
31+
"""
32+
Method using pushValue/popValue functions (fallback function for stack realignment)
33+
"""
34+
35+
@functools.wraps(f)
2936
def _(*args, **kwargs):
3037
threadData = getCurrentThreadData()
3138
originalLevel = len(threadData.valueStack)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.12.43"
22+
VERSION = "1.2.12.44"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ c347f085bd561adfa26d3a9512e5f3b9 lib/core/bigarray.py
3333
0d082da16c388b3445e656e0760fb582 lib/core/convert.py
3434
9f87391b6a3395f7f50830b391264f27 lib/core/data.py
3535
72016ea5c994a711a262fd64572a0fcd lib/core/datatype.py
36-
4086fb55f42e27de5330505605baad0f lib/core/decorators.py
36+
2e62f7c5e89442e5a76e6d797d54be2c lib/core/decorators.py
3737
fbb55cc6100318ff922957b6577dc58f lib/core/defaults.py
3838
ac7c070b2726d39fbac1916b1a5f92b2 lib/core/dicts.py
3939
760de985e09f5d11aacd3a8f2d8e9ff2 lib/core/dump.py
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
2e1f9bb9dce79f8681b8e1c83591d346 lib/core/settings.py
52+
659309102048735a13747b78c300120e lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py

0 commit comments

Comments
 (0)