capa/tests
Willi Ballenthin a6dd0faf9f fix: use integer division in get_printable_len for UTF-16 LE operands
`get_printable_len` returned a float for UTF-16 LE operands due to `/`
instead of `//`, violating the `-> int` annotation and silently
propagating a float into `_bb_has_stackstring`'s accumulator. Aligns
with the IDA extractor equivalent.

Closes SURF-58
2026-05-08 17:58:07 +02:00
..
data@f41a1998b9 update submodules 2026-04-23 18:04:10 +03:00
conftest.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
fixtures.py fix: implement extract_function_loop in dnfile extractor 2026-05-08 17:58:07 +02:00
test_binexport_accessors.py fix: replace assert with guard for 2-operand ARM ADD/SUB instructions 2026-05-08 17:58:07 +02:00
test_binexport_features.py fix: add return after zero-offset yield in extract_insn_offset_features 2026-05-08 17:58:07 +02:00
test_binja_features.py fix: address Optional member access and type mismatch in tests (chunk 6) 2026-04-23 16:11:58 +03:00
test_capabilities.py fix: capabilities/common.py: if va: drops address 0x0 2026-04-23 18:04:10 +03:00
test_cape_features.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_cape_model.py fix: stop mutating call.api in cape thread.get_calls 2026-05-08 17:58:07 +02:00
test_dnfile_features.py fix: remove extract_file_format from FILE_HANDLERS in five extractors 2026-05-08 17:58:07 +02:00
test_dotnetfile_features.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_drakvuf_features.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_drakvuf_models.py fix: omit trailing ' -> ' suffix in syscall call names when no return value 2026-05-08 17:58:07 +02:00
test_dynamic_span_of_calls_scope.py lint: replace black/isort/flake8 with ruff (#2992) 2026-04-07 12:10:41 -06:00
test_elffile_features.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_engine.py style: ruff format changed files 2026-04-23 18:04:10 +03:00
test_extractor_hashing.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_fmt.py build(deps-dev): bump black from 25.12.0 to 26.3.0 (#2902) 2026-03-13 15:46:13 +01:00
test_freeze_dynamic.py fix: address Optional member access and type mismatch in tests (chunk 6) 2026-04-23 16:11:58 +03:00
test_freeze_static.py style: ruff format changed files 2026-04-23 18:04:10 +03:00
test_function_id.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_ghidra_features.py ghidra: support PyGhidra (#2788) 2025-12-18 17:55:49 -07:00
test_helpers.py fix: use integer division in get_printable_len for UTF-16 LE operands 2026-05-08 17:58:07 +02:00
test_idalib_features.py tests: idalib: xfail resource test on 9.0 2026-01-13 16:15:31 +01:00
test_loader_segfault.py loader: skip PE files with unrealistically large section virtual sizes (#2905) 2026-03-10 15:03:35 -06:00
test_main.py lint: replace black/isort/flake8 with ruff (#2992) 2026-04-07 12:10:41 -06:00
test_match.py lint: replace black/isort/flake8 with ruff (#2992) 2026-04-07 12:10:41 -06:00
test_optimizer.py fix: optimizer doesn't recurse into And/Or/Some children 2026-04-23 18:04:10 +03:00
test_os_detection.py fix: extract_os yields duplicate/contradictory OS values 2026-04-23 18:04:10 +03:00
test_pefile_features.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_proto.py rename "sequence" scope to "span of calls" scope 2025-01-29 02:25:06 -07:00
test_render.py style: ruff format changed files 2026-04-23 18:04:10 +03:00
test_result_document.py fix: correct capa/subscope-rule key in RuleMetadata.from_capa 2026-05-08 17:58:07 +02:00
test_rule_cache.py lint: replace black/isort/flake8 with ruff (#2992) 2026-04-07 12:10:41 -06:00
test_rules.py fix: Scopes.from_dict uses cls instead of self 2026-05-08 17:58:07 +02:00
test_rules_insn_scope.py lint: replace black/isort/flake8 with ruff (#2992) 2026-04-07 12:10:41 -06:00
test_scripts.py build(deps-dev): bump black from 25.12.0 to 26.3.0 (#2902) 2026-03-13 15:46:13 +01:00
test_strings.py use _yield from []_ to create empty generator when needed #2572 (#2581) 2025-02-03 16:25:59 +01:00
test_viv_features.py [copyright + license] Fix headers 2025-01-15 08:52:42 -07:00
test_vmray_features.py vmray: extract number features for registry key handles (#2835) 2026-01-30 15:10:57 -07:00
test_vmray_model.py build(deps-dev): bump black from 25.12.0 to 26.3.0 (#2902) 2026-03-13 15:46:13 +01:00