x86 PC emulator and x86-to-wasm JIT, running in the browser
This report summarizes scanner evidence for copy/v86, a JavaScript project with 23,645 GitHub stars. SynthScan examined 141,945 lines of code across 354 source files, recording 230 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.4 (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? 213 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 230 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 230 distinct pattern matches across 10 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 | tests/qemu/compiler.h | 21 | #else | COMMENT |
| LOW | tests/qemu/compiler.h | 41 | #endif | COMMENT |
| LOW | tests/qemu/compiler.h | 61 | #ifndef container_of | COMMENT |
| LOW | tests/qemu/compiler.h | 81 | struct { \ | COMMENT |
| LOW | tests/qemu/compiler.h | 101 | # else | COMMENT |
| LOW | tests/qemu/config-host.h | 1 | /* Automatically generated by create_config - do not modify */ | COMMENT |
| LOW | tests/qemu/config-host.h | 21 | NULL | COMMENT |
| LOW | tests/qemu/config-host.h | 41 | #define CONFIG_EPOLL_CREATE1 1 | COMMENT |
| LOW | tests/qemu/config-host.h | 61 | #define CONFIG_LINUX_MAGIC_H 1 | COMMENT |
| LOW | tests/qemu/test-i386.c | 21 | #include <assert.h> | COMMENT |
| LOW | tests/qemu/test-i386.c | 41 | //#ifdef __SSE__ | COMMENT |
| LOW | tests/qemu/test-i386.c | 61 | COMMENT | |
| LOW | tests/qemu/test-i386.c | 101 | #define OP xor | COMMENT |
| LOW | tests/qemu/test-i386.c | 121 | #define OP inc | COMMENT |
| LOW | tests/qemu/test-i386.c | 141 | #undef CC_MASK | COMMENT |
| LOW | tests/qemu/test-i386.c | 161 | #include "test-i386-shift.h" | COMMENT |
| LOW | tests/qemu/test-i386.c | 181 | #define OP bt | COMMENT |
| LOW | tests/qemu/test-i386.c | 1901 | printf("VM86 end\n"); | COMMENT |
| LOW | tests/kvm-unit-tests/x86/hyperv_connections.c | 1 | #include "libcflat.h" | COMMENT |
| LOW | tests/kvm-unit-tests/x86/hyperv_synic.c | 1 | #include "libcflat.h" | COMMENT |
| LOW | tests/kvm-unit-tests/x86/pmu.c | 1 | COMMENT | |
| LOW | tests/kvm-unit-tests/x86/pmu.c | 21 | #define EVNTSEL_PC_SHIFT 19 | COMMENT |
| LOW | tests/kvm-unit-tests/x86/types.h | 1 | #ifndef __TYPES_H | COMMENT |
| LOW | tests/kvm-unit-tests/x86/access.c | 21 | COMMENT | |
| LOW | tests/kvm-unit-tests/x86/access.c | 81 | #define AC_PTE_ACCESSED_MASK (1 << AC_PTE_ACCESSED_BIT) | COMMENT |
| LOW | tests/kvm-unit-tests/x86/ioram.h | 1 | #ifndef __IO_RAM_H | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 101 | #define V_INTR_PRIO_MASK (0x0f << V_INTR_PRIO_SHIFT) | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 181 | }; | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 201 | #define SVM_SELECTOR_L_MASK (1 << SVM_SELECTOR_L_SHIFT) | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 221 | #define INTERCEPT_DR7_MASK (1 << 7) | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 241 | #define SVM_EXITINTINFO_TYPE_EXEPT SVM_EVTINJ_TYPE_EXEPT | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 261 | #define SVM_EXIT_READ_DR2 0x022 | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 281 | #define SVM_EXIT_CR0_SEL_WRITE 0x065 | COMMENT |
| LOW | tests/kvm-unit-tests/x86/svm.h | 301 | #define SVM_EXIT_INVLPG 0x079 | COMMENT |
| LOW | tests/kvm-unit-tests/x86/vmexit.c | 1 | #include "libcflat.h" | COMMENT |
| LOW | tests/kvm-unit-tests/x86/hyperv.h | 1 | #ifndef __HYPERV_H | COMMENT |
| LOW | tests/kvm-unit-tests/x86/hyperv.h | 21 | #define HV_X64_MSR_SVERSION 0x40000081 | COMMENT |
| LOW | tests/kvm-unit-tests/x86/hyperv.h | 41 | COMMENT | |
| LOW | tests/kvm-unit-tests/x86/hyperv_stimer.c | 1 | #include "libcflat.h" | COMMENT |
| LOW | tests/kvm-unit-tests/x86/vmx.h | 481 | "xchg %%r11, regs+0x58\n\t" \ | COMMENT |
| LOW | tests/kvm-unit-tests/x86/vmx.h | 501 | COMMENT | |
| LOW | tests/kvm-unit-tests/x86/vmx.h | 521 | #define EPT_MEM_TYPE_WP 5ul | COMMENT |
| LOW | tests/kvm-unit-tests/x86/vmx.h | 541 | #define EPT_CAP_INVEPT (1ull << 20) | COMMENT |
| LOW | tests/kvm-unit-tests/x86/vmx.h | 561 | #define EPT_VLT_RD 1 | COMMENT |
| LOW | tests/kvm-unit-tests/x86/vmx_tests.c | 1 | /* | COMMENT |
| LOW | tests/kvm-unit-tests/x86/eventinj.c | 1 | #include "libcflat.h" | COMMENT |
| LOW | tests/kvm-unit-tests/lib/libcflat.h | 21 | #define __LIBCFLAT_H | COMMENT |
| LOW | tests/kvm-unit-tests/lib/libcflat.h | 61 | # define __PRI32_PREFIX | COMMENT |
| LOW | tests/kvm-unit-tests/lib/pci-edu.h | 21 | #define PCI_VENDOR_ID_QEMU 0x1234 | COMMENT |
| LOW | tests/kvm-unit-tests/lib/virtio-mmio.h | 1 | #ifndef _VIRTIO_MMIO_H_ | COMMENT |
| LOW | tests/kvm-unit-tests/lib/virtio-mmio.h | 21 | #define VIRTIO_MMIO_GUEST_FEATURES_SEL 0x024 | COMMENT |
| LOW | tests/kvm-unit-tests/lib/kbuild.h | 1 | #ifndef _KBUILD_H_ | COMMENT |
| LOW | tests/kvm-unit-tests/lib/asm-generic/page.h | 21 | COMMENT | |
| LOW | tests/kvm-unit-tests/lib/asm-generic/barrier.h | 1 | #ifndef _ASM_BARRIER_H_ | COMMENT |
| LOW | tests/kvm-unit-tests/lib/asm-generic/barrier.h | 21 | #ifndef smp_mb | COMMENT |
| LOW | tests/kvm-unit-tests/lib/asm-generic/io.h | 101 | #endif | COMMENT |
| LOW | tests/kvm-unit-tests/lib/asm-generic/pci.h | 1 | #ifndef _ASM_GENERIC_PCI_H_ | COMMENT |
| LOW | tests/kvm-unit-tests/lib/asm-generic/atomic.h | 1 | #ifndef __ASM_GENERIC_ATOMIC_H__ | COMMENT |
| LOW | tests/kvm-unit-tests/lib/libfdt/fdt.h | 101 | size, content */ | COMMENT |
| LOW | tests/kvm-unit-tests/lib/libfdt/libfdt.h | 161 | /**********************************************************************/ | COMMENT |
| 144 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/devices/virtio_balloon.js | 57 | emulator.v86.cpu.devices.virtio_balloon.GetStats(s => { console.log(s); }); | CODE |
| CRITICAL | tests/devices/virtio_balloon.js | 58 | emulator.v86.cpu.devices.virtio_balloon.Cleanup(async (zeroed) => { | CODE |
| CRITICAL | tests/devices/virtio_balloon.js | 99 | emulator.v86.cpu.devices.virtio_balloon.Inflate(30000); | CODE |
| CRITICAL | src/browser/main.js | 3059 | if(emulator.v86.cpu.devices.cdrom.has_disk()) | CODE |
| CRITICAL | src/browser/main.js | 3067 | if(emulator.v86.cpu.devices.cdrom.has_disk()) | CODE |
| CRITICAL | src/browser/starter.js | 309 | this.screen_adapter = new ScreenAdapter(screen_options, () => this.v86.cpu.devices.vga && this.v86.cpu.devices.v | CODE |
| CRITICAL | src/browser/starter.js | 1046 | this.v86.cpu.devices.cdrom.set_cdrom(new SyncBuffer(result)); | CODE |
| CRITICAL | src/browser/starter.js | 1055 | this.v86.cpu.devices.cdrom.set_cdrom(image); | CODE |
| CRITICAL | src/browser/starter.js | 1066 | this.v86.cpu.devices.cdrom.eject(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/benchmark/arch-python.js | 38 | print("fib(", n, ")= ", fib(n)) | CODE |
| HIGH⚡ | tests/api/2g-mem.js | 38 | print(m, " ", collectgarbage("count")) | CODE |
| HIGH⚡ | tests/api/2g-mem.js | 41 | print("memory usage (kB) ", collectgarbage("count")) | CODE |
| HIGH⚡ | tests/api/2g-mem.js | 42 | print("page count ", m) | CODE |
| HIGH⚡ | tests/api/2g-mem.js | 47 | print("ok") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/buffer.js | 756 | // - loads slices of the file asynchronously as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/split-image.py | 45 | except FileExistsError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/fs2json.py | 109 | CODE | |
| LOW | tools/fs2json.py | 218 | CODE | |
| LOW | tools/copy-to-sha256.py | 84 | CODE | |
| LOW | tools/copy-to-sha256.py | 116 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/docker/alpine/build-state.js | 9 | console.log("Don't forget to run `make all` before running this script"); | CODE |
| LOW | tools/docker/debian/build-state-9p.js | 12 | console.log("Don't forget to run `make all` before running this script"); | CODE |
| LOW | tools/docker/debian/build-state-raw-disk.js | 12 | console.log("Don't forget to run `make all` before running this script"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/copy-to-sha256.py | 40 | print("Error: zstandard module required when using --zstd flag") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/copy-to-sha256.py | 11 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/browser/serial.js | 331 | export function VirtioConsoleAdapterXtermJS(element, bus, xterm_lib) | CODE |