Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cf14c8

Browse files
committed
Fixes #4086
1 parent 615ac3b commit 4cf14c8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
from lib.core.settings import IS_WIN
139139
from lib.core.settings import LARGE_OUTPUT_THRESHOLD
140140
from lib.core.settings import LOCALHOST
141+
from lib.core.settings import MAX_INT
141142
from lib.core.settings import MIN_ENCODED_LEN_CHECK
142143
from lib.core.settings import MIN_ERROR_PARSING_NON_WRITING_RATIO
143144
from lib.core.settings import MIN_TIME_RESPONSES
@@ -2998,9 +2999,11 @@ def isNumPosStrValue(value):
29982999
False
29993000
>>> isNumPosStrValue('-2')
30003001
False
3002+
>>> isNumPosStrValue('100000000000000000000')
3003+
False
30013004
"""
30023005

3003-
return (hasattr(value, "isdigit") and value.isdigit() and int(value) > 0) or (isinstance(value, int) and value > 0)
3006+
return ((hasattr(value, "isdigit") and value.isdigit() and int(value) > 0) or (isinstance(value, int) and value > 0)) and int(value) < MAX_INT
30043007

30053008
@cachedmethod
30063009
def aliasToDbmsEnum(dbms):

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

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

0 commit comments

Comments
 (0)