From 6ce0350abc9d0b435358b2dd3c7519a3dcc20eac Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 26 Dec 2018 22:12:13 +0100 Subject: [PATCH] Fixes #3420 --- lib/core/settings.py | 2 +- lib/request/basic.py | 2 +- txt/checksum.md5 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 8756afde2..34cfd8ea6 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.2.12.38" +VERSION = "1.2.12.39" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/request/basic.py b/lib/request/basic.py index 9dd834343..f60ead067 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -342,7 +342,7 @@ def decodePage(page, contentEncoding, contentType): retVal = match.group(0) try: retVal = unichr(int(match.group(1))) - except ValueError: + except (ValueError, OverflowError): pass return retVal page = re.sub(r"&#(\d+);", _, page) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 611162970..50d6d47f8 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py 0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py a7db43859b61569b601b97f187dd31c5 lib/core/revision.py fcb74fcc9577523524659ec49e2e964b lib/core/session.py -6487983b44e37792b7b5a1581ca943c7 lib/core/settings.py +9a25febb08854816a83ee455005b865d lib/core/settings.py a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py 1581be48127a3a7a9fd703359b6e7567 lib/core/target.py @@ -69,7 +69,7 @@ fb2e2f05dde98caeac6ccf3e67192177 lib/parse/configfile.py f6b5957bf2103c3999891e4f45180bce lib/parse/payloads.py 492654567e72b6a14584651fcd9f16e6 lib/parse/sitemap.py 30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py -2b81435f5a7519298c15c724e3194a0d lib/request/basic.py +67c035eda3066b44c592b2f602e44b3e lib/request/basic.py 859b6ad583e0ffba154f17ee179b5b89 lib/request/comparison.py 999f9b050ffe9e9b7ddbc9fdb0a18432 lib/request/connect.py dd4598675027fae99f2e2475b05986da lib/request/direct.py