Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
This report summarizes scanner evidence for capstone-engine/capstone, a C project with 9,160 GitHub stars. SynthScan examined 1,165,915 lines of code across 3648 source files, recording 632 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 361 finding(s).
Are imports declared and package/API names verified? 210 finding(s).
Are wrappers, guards, and repeated structures necessary? 95 finding(s).
Which changes need focused human review? 632 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 632 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils.h | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | MathExtras.h | 1 | //===-- llvm/Support/MathExtras.h - Useful math functions -------*- C++ -*-===// | COMMENT |
| LOW | MathExtras.h | 21 | #include "windowsce/intrin.h" | COMMENT |
| LOW | LEB128.h | 1 | //===- llvm/Support/LEB128.h - [SU]LEB128 utility functions -----*- C++ -*-===// | COMMENT |
| LOW | MCFixedLenDisassembler.h | 1 | //===-- llvm/MC/MCFixedLenDisassembler.h - Decoder driver -------*- C++ -*-===// | COMMENT |
| LOW | cs.c | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | cs.c | 21 | #if defined(_KERNEL_MODE) | COMMENT |
| LOW | cs.c | 41 | #endif | COMMENT |
| LOW | cs.c | 61 | #include "arch/ARM/ARMModule.h" | COMMENT |
| LOW | cs.c | 281 | CS_ARCH_CONFIG_ARM, | COMMENT |
| LOW | cs.c | 301 | CS_ARCH_CONFIG_X86, | COMMENT |
| LOW | cs.c | 321 | CS_ARCH_CONFIG_M68K, | COMMENT |
| LOW | cs.c | 341 | CS_ARCH_CONFIG_MOS65XX, | COMMENT |
| LOW | cs.c | 381 | }, | COMMENT |
| LOW | cs.c | 401 | COMMENT | |
| LOW | cs.c | 421 | #endif | COMMENT |
| LOW | cs.c | 441 | | (1 << CS_ARCH_MOS65XX) | COMMENT |
| LOW | cs.c | 461 | #ifdef CAPSTONE_HAS_HPPA | COMMENT |
| LOW | Mapping.h | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | Mapping.h | 61 | /// Assumes the istruction operands map is called "insn_operands" | COMMENT |
| LOW | Mapping.h | 281 | COMMENT | |
| LOW | MCInstrDesc.h | 1 | //===-- llvm/MC/MCInstrDesc.h - Instruction Descriptors -*- C++ -*-===// | COMMENT |
| LOW | MCInstrDesc.h | 21 | #include "MCRegisterInfo.h" | COMMENT |
| LOW | MCInstrDesc.h | 81 | /// if the operand is a register. If isLookupPtrRegClass is set, then this is | COMMENT |
| LOW | MCRegisterInfo.h | 1 | //=== MC/MCRegisterInfo.h - Target Register Description ---------*- C++ -*-===// | COMMENT |
| LOW | MCRegisterInfo.h | 61 | COMMENT | |
| LOW | MCInst.h | 1 | //===-- llvm/MC/MCInst.h - MCInst class -------------------------*- C++ -*-===// | COMMENT |
| LOW | SStream.c | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | utils.c | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | cs_simple_types.h | 301 | CS_DATA_TYPE_iPTRAny = 250, | COMMENT |
| LOW | MCInst.c | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | MCRegisterInfo.c | 1 | //=== MC/MCRegisterInfo.cpp - Target Register Description -------*- C++ -*-===// | COMMENT |
| LOW | include/platform.h | 1 | /* Capstone Disassembly Engine */ | COMMENT |
| LOW | include/platform.h | 21 | COMMENT | |
| LOW | include/platform.h | 41 | typedef signed int int32_t; | COMMENT |
| LOW | include/platform.h | 61 | COMMENT | |
| LOW | include/platform.h | 81 | #define PRIi32 "li" | COMMENT |
| LOW | include/platform.h | 101 | #define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i" | COMMENT |
| LOW | include/capstone/capstone.h | 1 | #ifndef CAPSTONE_ENGINE_H | COMMENT |
| LOW | include/capstone/capstone.h | 21 | #include "cs_operand.h" | COMMENT |
| LOW | include/capstone/capstone.h | 41 | COMMENT | |
| LOW | include/capstone/capstone.h | 61 | // Capstone package version | COMMENT |
| LOW | include/capstone/capstone.h | 81 | // It is set to CS_VERSION_STABLE, if this code is part of a stable release. | COMMENT |
| LOW | include/capstone/capstone.h | 481 | @return: return number of bytes to skip, or 0 to immediately stop disassembling. | COMMENT |
| LOW | include/capstone/capstone.h | 501 | /// Arm: 2 bytes (Thumb mode) or 4 bytes. | COMMENT |
| LOW | include/capstone/capstone.h | 521 | void *user_data; | COMMENT |
| LOW | include/capstone/capstone.h | 541 | #include "riscv.h" | COMMENT |
| LOW | include/capstone/capstone.h | 621 | COMMENT | |
| LOW | include/capstone/capstone.h | 641 | /// This information is available even when CS_OPT_DETAIL = CS_OPT_OFF | COMMENT |
| LOW | include/capstone/capstone.h | 661 | /// False: The instruction decoded correctly and is valid. | COMMENT |
| LOW | include/capstone/mips.h | 1 | #ifndef CAPSTONE_MIPS_H | COMMENT |
| LOW | include/capstone/sparc.h | 1 | #ifndef CAPSTONE_SPARC_H | COMMENT |
| LOW | include/capstone/m68k.h | 1 | #ifndef CAPSTONE_M68K_H | COMMENT |
| LOW | include/capstone/arm.h | 1 | #ifndef CAPSTONE_ARM_H | COMMENT |
| LOW | include/capstone/arm.h | 1741 | #define ARM_CC_PL ARMCC_PL | COMMENT |
| LOW | include/capstone/alpha.h | 1 | #ifndef CAPSTONE_ALPHA_H | COMMENT |
| LOW | include/capstone/x86.h | 281 | #define X86_EFLAGS_MODIFY_IF (1ULL << 7) | COMMENT |
| LOW | include/capstone/x86.h | 301 | #define X86_EFLAGS_RESET_TF (1ULL << 27) | COMMENT |
| LOW | include/capstone/x86.h | 321 | #define X86_EFLAGS_TEST_RF (1ULL << 47) | COMMENT |
| LOW | include/capstone/x86.h | 341 | #define X86_FPU_FLAGS_RESET_C3 (1ULL << 7) | COMMENT |
| 211 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/objdump/objdump-m68k.py | 5 | CODE | |
| LOW | contrib/objdump/objdump-m68k.py | 6 | CODE | |
| LOW | suite/test_corpus3.py | 5 | CODE | |
| LOW | suite/test_corpus3.py | 7 | CODE | |
| LOW | suite/cstest/test/integration_tests.py | 7 | CODE | |
| LOW | suite/auto-sync/src/autosync/Helper.py | 8 | CODE | |
| LOW | …-sync/src/autosync/cpptranslator/patches/ClassesDef.py | 4 | CODE | |
| LOW | …-sync/src/autosync/cpptranslator/patches/ClassesDef.py | 5 | CODE | |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/Assert.py | 6 | CODE | |
| LOW | …c/autosync/cpptranslator/patches/TemplateDefinition.py | 4 | CODE | |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/isUInt.py | 8 | CODE | |
| LOW | …/autosync/cpptranslator/patches/TemplateDeclaration.py | 4 | CODE | |
| LOW | …c/src/autosync/cpptranslator/patches/CreateOperand1.py | 8 | CODE | |
| LOW | …-sync/src/autosync/cpptranslator/patches/LLVM_DEBUG.py | 7 | CODE | |
| LOW | …-sync/src/autosync/cpptranslator/Tests/test_patches.py | 74 | CODE | |
| LOW | suite/auto-sync/src/autosync/lit_config/lit.site.cfg.py | 6 | CODE | |
| LOW | bindings/const_generator.py | 3 | CODE | |
| LOW | bindings/python/tests/test_compatibility_layer.py | 7 | CODE | |
| LOW | bindings/python/tests/test_iter.py | 4 | CODE | |
| LOW | bindings/python/tests/test_skipdata.py | 5 | CODE | |
| LOW | bindings/python/tests/test_riscv_sysreg.py | 1 | CODE | |
| LOW | bindings/python/tests/test_riscv_sysreg.py | 2 | CODE | |
| LOW | bindings/python/tests/test_riscv_sysreg.py | 3 | CODE | |
| LOW | bindings/python/tests/test_lite.py | 4 | CODE | |
| LOW | bindings/python/tests/test_riscv_reg_access.py | 2 | CODE | |
| LOW | bindings/python/tests/test_riscv_reg_access.py | 3 | CODE | |
| LOW | bindings/python/tests/test_customized_mnem.py | 5 | CODE | |
| LOW | bindings/python/tests/test_customized_mnem.py | 6 | CODE | |
| LOW | bindings/python/capstone/aarch64_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/m680x_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/arc_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/bpf.py | 6 | CODE | |
| LOW | bindings/python/capstone/tricore.py | 5 | CODE | |
| LOW | bindings/python/capstone/evm.py | 4 | CODE | |
| LOW | bindings/python/capstone/evm.py | 5 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/mips_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/sparc.py | 5 | CODE | |
| LOW | bindings/python/capstone/sh_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/sh_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/sh_const.py | 1 | CODE | |
| LOW | bindings/python/capstone/sh_const.py | 1 | CODE | |
| 150 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/details/m68k.yaml | 1106 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1110 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1224 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1227 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1285 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1288 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1346 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1349 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1362 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1365 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1378 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1394 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1513 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1516 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1821 | # ========================================================================== | COMMENT |
| MEDIUM | tests/details/m68k.yaml | 1824 | # ========================================================================== | COMMENT |
| MEDIUM⚡ | tests/details/riscv.yaml | 5057 | # ================================================================================================== | COMMENT |
| MEDIUM⚡ | tests/details/riscv.yaml | 5059 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/details/riscv.yaml | 5062 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5017 | # ================================================================================================== | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5422 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5425 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5534 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5537 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5686 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 5689 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6022 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6025 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6162 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6165 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6316 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6319 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6562 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6565 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6715 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/details/riscv.yaml | 6718 | # -------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …sync/Tests/MCUpdaterTests/Disassembler/ARCH/test_a.txt | 4 | #------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …sync/Tests/MCUpdaterTests/Disassembler/ARCH/test_a.txt | 6 | #------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 142 | AddOperand.__name__: 1, # ────────┘ The ones left are fixed with the `AddOperand` patch. | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 156 | Assert.__name__: 0, # ◁─────────┐ The llvm_unreachable calls are replaced with asserts. | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 163 | OutStreamParam.__name__: 0, # ◁──────┐ add_cs_detail() is added to printOperand functions with a certain | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 166 | AddCSDetail.__name__: 1, # ──────────┘ | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 167 | NamespaceAnon.__name__: 0, # ◁─────┐ "llvm" and anonymous namespaces must be removed first, | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 168 | NamespaceLLVM.__name__: 0, # ◁─────┤ so they don't match in NamespaceArch. | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 169 | NamespaceArch.__name__: 1, # ──────┘ | CODE |
| MEDIUM⚡ | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 174 | ClassesDef.__name__: 0, # ◁────────┐ Declarations must be extracted first from the classes. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/objdump/objdump-m68k.py | 302 | CODE | |
| LOW | suite/test_corpus3.py | 10 | CODE | |
| LOW | suite/auto-sync/src/autosync/HeaderPatcher.py | 107 | CODE | |
| LOW | suite/auto-sync/src/autosync/HeaderPatcher.py | 253 | CODE | |
| LOW | suite/auto-sync/src/autosync/HeaderPatcher.py | 320 | CODE | |
| LOW | suite/auto-sync/src/autosync/Helper.py | 17 | CODE | |
| LOW | suite/auto-sync/src/autosync/PathVarHandler.py | 22 | CODE | |
| LOW | suite/auto-sync/src/autosync/IncGenerator.py | 86 | CODE | |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 386 | CODE | |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 429 | CODE | |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 468 | CODE | |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 544 | CODE | |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 804 | CODE | |
| LOW | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 421 | CODE | |
| LOW | …o-sync/src/autosync/cpptranslator/TemplateCollector.py | 99 | CODE | |
| LOW | …o-sync/src/autosync/cpptranslator/TemplateCollector.py | 139 | CODE | |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/Helper.py | 148 | CODE | |
| LOW | …sync/src/autosync/cpptranslator/patches/AddCSDetail.py | 88 | CODE | |
| LOW | …c/src/autosync/cpptranslator/patches/FieldFromInstr.py | 34 | CODE | |
| LOW | bindings/const_generator.py | 133 | CODE | |
| LOW | bindings/python/tests/test_riscv_sysreg.py | 6 | CODE | |
| LOW | bindings/python/capstone/__init__.py | 1273 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/cstest.py | 84 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/cstest.py | 350 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 219 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 295 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 412 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 484 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 615 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 694 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 863 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 908 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 953 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 978 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1012 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1092 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1253 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1299 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1331 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1367 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1410 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1444 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1486 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1519 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1556 | CODE | |
| LOW | bindings/python/cstest_py/src/cstest_py/details.py | 1614 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | bindings/python/setup.py | 81 | except (IOError, OSError): | CODE |
| HIGH | bindings/python/capstone/__init__.py | 1887 | except: | CODE |
| HIGH | bindings/python/capstone/__init__.py | 1555 | except: | CODE |
| HIGH | bindings/python/capstone/__init__.py | 1586 | except: # _cs might be pulled from under our feet | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | suite/auto-sync/src/autosync/HeaderPatcher.py | 176 | def patch_riscv_compat_macros(header: Path) -> bool: | CODE |
| LOW | suite/auto-sync/src/autosync/Helper.py | 162 | def test_only_overwrite_path_var(var_name: str, new_path: Path): | CODE |
| LOW | suite/auto-sync/src/autosync/MCUpdater.py | 101 | def get_legacy_mc_test_triple(self): | CODE |
| LOW | suite/auto-sync/src/autosync/MCUpdater.py | 241 | def get_fuzz_test_file_content(self, only_tests: bool) -> str: | CODE |
| LOW | suite/auto-sync/src/autosync/Tests/test_mcupdater.py | 92 | def multi_mode_unified_test_cases(self): | CODE |
| LOW | suite/auto-sync/src/autosync/Tests/test_mcupdater.py | 118 | def multi_mode_separated_test_cases(self): | CODE |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 65 | def get_coordinates_from_node(node: Node): | CODE |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 697 | def determine_patch_coordinates( | CODE |
| LOW | …/auto-sync/src/autosync/cpptranslator/CppTranslator.py | 471 | def collect_template_instances(self): | CODE |
| LOW | …o-sync/src/autosync/cpptranslator/TemplateCollector.py | 205 | def contains_template_dependent_param( | CODE |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/Helper.py | 12 | def get_function_params_of_node(n: Node) -> Node: | CODE |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/Helper.py | 53 | def template_param_list_to_dict(param_list: Node) -> [dict]: | CODE |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/Helper.py | 73 | def parameter_declaration_to_dict(param_decl: Node) -> dict: | CODE |
| LOW | …uto-sync/src/autosync/cpptranslator/Tests/test_unit.py | 22 | def test_patching_constraints(self): | CODE |
| LOW | …-sync/src/autosync/cpptranslator/Tests/test_patches.py | 201 | def test_constmcinstparameter(self): | STRING |
| LOW | …-sync/src/autosync/cpptranslator/Tests/test_patches.py | 240 | def test_declarationinconditionclause(self): | STRING |
| LOW | …-sync/src/autosync/cpptranslator/Tests/test_patches.py | 385 | def test_inlinetostaticinline(self): | STRING |
| LOW | …-sync/src/autosync/cpptranslator/Tests/test_patches.py | 483 | def test_predicateblockfunctions(self): | STRING |
| LOW | bindings/python/tests/test_riscv_reg_access.py | 7 | def test_riscv_syntax_detail_constants(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | suite/auto-sync/src/autosync/MCUpdater.py | 74 | CODE | |
| LOW | …rc/autosync/cpptranslator/patches/MethodToFunctions.py | 45 | CODE | |
| LOW | …/cpptranslator/patches/DeclarationInConditionClause.py | 50 | CODE | |
| LOW | …sync/src/autosync/cpptranslator/patches/STParameter.py | 41 | CODE | |
| LOW | …ync/src/autosync/cpptranslator/patches/TemplateRefs.py | 41 | CODE | |
| LOW | …/src/autosync/cpptranslator/patches/GetRegFromClass.py | 44 | CODE | |
| LOW | …/autosync/cpptranslator/patches/MethodTypeQualifier.py | 40 | CODE | |
| LOW | …c/src/autosync/cpptranslator/patches/ReferencesDecl.py | 39 | CODE | |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/Helper.py | 145 | CODE | |
| LOW | …src/autosync/cpptranslator/patches/RegClassContains.py | 42 | CODE | |
| LOW | …auto-sync/src/autosync/cpptranslator/patches/isUInt.py | 45 | CODE | |
| LOW | …sync/src/autosync/cpptranslator/patches/GetRegClass.py | 45 | CODE | |
| LOW | …c/src/autosync/cpptranslator/patches/OutStreamParam.py | 44 | CODE | |
| LOW | …sync/src/autosync/cpptranslator/patches/STIArgument.py | 33 | CODE | |
| LOW | …/src/autosync/cpptranslator/patches/LLVMunreachable.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | suite/test_corpus3.py | 171 | except Exception as e: | CODE |
| LOW | suite/run_tests.py | 38 | except Exception as e: | CODE |
| LOW | suite/auto-sync/src/autosync/cpptranslator/Differ.py | 1006 | except Exception as e: | CODE |
| MEDIUM | bindings/const_generator.py | 216 | print("Error: Unable to convert %s" % f) | CODE |
| MEDIUM | bindings/python/cstest_py/src/cstest_py/cstest.py | 119 | print("Error messages:") | CODE |
| LOW⚡ | bindings/python/cstest_py/src/cstest_py/cstest.py | 307 | except Exception as e: | CODE |
| LOW⚡ | bindings/python/cstest_py/src/cstest_py/cstest.py | 314 | except Exception as e: | CODE |
| LOW⚡ | bindings/python/cstest_py/src/cstest_py/cstest.py | 321 | except Exception as e: | CODE |
| LOW | bindings/python/cstest_py/src/cstest_py/cstest.py | 411 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/objdump/objdump-m68k.py | 200 | # It's ok to just use PCMI here as is as we set base_reg to PC in the disassembler. | COMMENT |
| LOW | …c/src/autosync/cpptranslator/patches/FieldFromInstr.py | 51 | # If function just return fieldFromInstruction(...) | COMMENT |
| LOW | …c/src/autosync/cpptranslator/patches/FieldFromInstr.py | 77 | # Here we just create a function with the postfix fieldFromInstruction_w (for width). | COMMENT |
| LOW | bindings/python/tests/test_skipdata.py | 40 | # Default "data" instruction's name is ".byte". To rename it to "db", just use | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bindings/python/capstone/__init__.py | 1067 | # This function is faster than cs_disasm_quick() around 20% because | COMMENT |
| MEDIUM | bindings/python/capstone/riscv_const.py | 6 | # This file is supposed to be generated automatically | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MCInstPrinter.c | 231 | // Here we need to check if a previous entry is of the same encoding | COMMENT |
| LOW | MCInstPrinter.c | 270 | // Here we need to check if a previous entry is of the same encoding | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | suite/auto-sync/src/autosync/Helper.py | 74 | # Check if any child has a matching type. | COMMENT |
| LOW | …o-sync/src/autosync/cpptranslator/TemplateCollector.py | 151 | # Check if this caller has a dependent template call. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindings/python/setup.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | bindings/python/capstone/__init__.py | 5 | __all__ = [ | CODE |