Skip to content

Commit 0c6f57d

Browse files
committed
Fixing CI/CD errors
1 parent 43c6574 commit 0c6f57d

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

lib/core/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def _serializeDecode(struct):
184184
# that would surface as 'bytes' and break str consumers - most visibly kb.chars,
185185
# whose str-key lookups then return None and crash cleanupPayload(). Recover such
186186
# cross-version TEXT by decoding valid UTF-8 to 'str'; real binary stays bytes.
187-
if struct.get("pv") == 3:
187+
if struct.get("pv") == 3 or not six.PY3:
188188
return raw
189189
try:
190190
return raw.decode("utf-8")

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 import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.7.108"
23+
VERSION = "1.10.7.109"
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)

tests/test_pagecontent.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
from lib.core.common import (getFilteredPageContent, getPageWordSet,
2626
extractTextTagContent, parseSqliteTableSchema)
27+
from lib.core.data import conf
2728
from lib.core.data import kb
2829

2930

@@ -60,8 +61,14 @@ def test_multiple_tags(self):
6061

6162
class TestParseSqliteTableSchema(unittest.TestCase):
6263
def setUp(self):
64+
# parseSqliteTableSchema keys cachedColumns by conf.db/conf.tbl - reset them (not just
65+
# cachedColumns) so a leaked db/tbl from a prior test can't shift the storage key and
66+
# break this test's [None][None] lookup (order-dependent flake under PyPy discovery)
6367
self.addCleanup(setattr, kb.data, "cachedColumns", kb.data.get("cachedColumns"))
68+
self.addCleanup(setattr, conf, "db", conf.get("db"))
69+
self.addCleanup(setattr, conf, "tbl", conf.get("tbl"))
6470
kb.data.cachedColumns = {}
71+
conf.db = conf.tbl = None
6572

6673
def _cols(self):
6774
# parseSqliteTableSchema stores under cachedColumns[db][table] (both None here)

0 commit comments

Comments
 (0)