code wiki / _hdl_build / nx_html_sanitize_test.nx

nx_html_sanitize_test.nx

buildroot/runtime/_hdl_build/nx_html_sanitize_test.nx

7522 B115 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic html
docsdependenciesstructsconstsfunctions

about

nx_html_sanitize_test.nx -- ENGINEER verification of the CMS sanitizer keystone: byte-exact KATs over REAL stored-XSS vectors (script, event handlers, javascript: URLs, case games, unterminated tags, style content, quote-embedded '>'), plus the escape-on-render path. Exit 0 = all green.

dependencies 3 imports · 0 importers

nx_gate_verdict.nx nx_html_sanitize.nx nx_syscalls.nx nx_html_sanitize_test.nx

imports: nx_gate_verdict.nxnx_html_sanitize.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gv_head gv_puts sys_write gv_ctr 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 ↻ ht_kat sys_mmap ↻ hs_sanitize sys_mmap ↻ hs_emitb hs_name_at hs_alpha hs_lc hs_digit hs_lc ↻ hs_emit hs_emitb ↻ hs_find_gt hs_tag_allowed hs_skip_close hs_lc ↻ hs_find_gt ↻ hs_href_extract hs_lc ↻ hs_href_value

structs

none

consts

none

functions

8func ht_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
9func ht_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
12func ht_kat(id: i64, inp: *u8, want: *u8) -> i64
33func ht_kat_span(id: i64, inp: *u8, want: *u8) -> i64
55func ht_kat_esc(id: i64, inp: *u8, want: *u8) -> i64
called by 1: main calls 4: sys_mmaphs_escapeht_lenht_w
69func main() -> i64