From 41bdb9365540c1147fd7721b5d5392955376c0c1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 9 Mar 2020 10:30:24 +0100 Subject: [PATCH] Fixes #4132 --- lib/core/convert.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/convert.py b/lib/core/convert.py index 4337e0525..e27bb2345 100644 --- a/lib/core/convert.py +++ b/lib/core/convert.py @@ -95,7 +95,7 @@ def htmlUnescape(value): try: retVal = re.sub(r"&#x([^ ;]+);", lambda match: _unichr(int(match.group(1), 16)), retVal) - except ValueError: + except (ValueError, OverflowError): pass return retVal diff --git a/lib/core/settings.py b/lib/core/settings.py index cf339f9d4..d55d79546 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.3.3" +VERSION = "1.4.3.4" 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)