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 nx_json_new sys_mmap ↻ drain_tok nx_json_next nx_json_skip_ws nx_lex_is_ws nx_ascii_is_digit sys_mmap ↻ nx_json_lit

structs

none

consts

none

functions

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