revert bninja change

This commit is contained in:
Pratham Chauhan
2023-04-05 13:32:15 +05:30
parent 6641c8c9c9
commit 6eaa46ea9a
3 changed files with 4 additions and 4 deletions

4
.github/ruff.toml vendored
View File

@@ -1,6 +1,6 @@
select = ["E"] select = ["E"]
ignore = ["E402", "E722", "E902"] ignore = ["E402", "E722"]
exclude = ["*_pb2.py", "*_pb2.pyi", "capa2yara.py"] exclude = ["*_pb2.py", "*_pb2.pyi"]
# Same as pycodestyle. # Same as pycodestyle.
line-length = 180 line-length = 180

View File

@@ -439,7 +439,7 @@ def extract_insn_peb_access_characteristic_features(
return True return True
value = right.value.value value = right.value.value
if (reg, value) not in (("fsbase", 48), ("gsbase", 96)): if not (reg, value) in (("fsbase", 0x30), ("gsbase", 0x60)):
return True return True
results.append((Characteristic("peb access"), ih.address)) results.append((Characteristic("peb access"), ih.address))

View File

@@ -74,7 +74,7 @@ setuptools.setup(
"pytest-instafail==0.5.0", "pytest-instafail==0.5.0",
"pytest-cov==4.0.0", "pytest-cov==4.0.0",
"pycodestyle==2.10.0", "pycodestyle==2.10.0",
"ruff==0.0.259", "ruff==0.0.260",
"black==23.3.0", "black==23.3.0",
"isort==5.11.4", "isort==5.11.4",
"mypy==1.1.1", "mypy==1.1.1",