Skip to content

Commit ad7da11

Browse files
committed
Fixes #4866
1 parent 08cb06f commit ad7da11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/core/settings.py

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

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

lib/utils/hashdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def flush(self, forced=False):
151151
self.cursor.execute("INSERT INTO storage VALUES (?, ?)", (hash_, value,))
152152
except sqlite3.IntegrityError:
153153
self.cursor.execute("UPDATE storage SET value=? WHERE id=?", (value, hash_,))
154-
except UnicodeError: # e.g. surrogates not allowed (Issue #3851)
154+
except (UnicodeError, OverflowError): # e.g. surrogates not allowed (Issue #3851)
155155
break
156156
except sqlite3.DatabaseError as ex:
157157
if not os.path.exists(self.filepath):

0 commit comments

Comments
 (0)