code wiki / (root) / nx_json_adversarial_test.nx

nx_json_adversarial_test.nx

buildroot/runtime/nx_json_adversarial_test.nx

3325 B99 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic json
docsdependenciesstructsconstsfunctions

about

nx_json_adversarial_test.nx -- Phase A5 of S-class hardening. Adversarial fuzzing of nx_json_next, the tokenizer the substrate uses to parse Moonraker HTTP responses + any other JSON-bearing input. Even though Moonraker is on the LAN, defense-in-depth: a malformed JSON byte stream must not crash the tokenizer or read past the buffer. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_json.nx nx_json_adversarial_test.nx

imports: nx_syscalls.nxnx_json.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ nx_json_new sys_mmap ↻ drain_tok nx_json_next nx_json_skip_ws nx_json_lit nx_ascii_is_digit

structs

none

consts

none

functions

19func drain_tok(t: *NxJsonTok) -> i64
called by 1: main calls 1: nx_json_next
30func main() -> i64