code wiki / _hdl_build / nx_html_sanitize_test.nx

nx_html_sanitize_test.nx

buildroot/runtime/_hdl_build/nx_html_sanitize_test.nx

5595 B97 linesdepth 3pulls 3 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 2 imports · 0 importers

nx_html_sanitize.nx nx_syscalls.nx nx_html_sanitize_test.nx

imports: nx_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 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 hs_scheme_ok hs_lc ↻ ht_len ht_w sys_write sys_write ↻ ht_kat_esc sys_mmap ↻ hs_escape hs_emit ↻ hs_emitb ↻ ht_len ↻ ht_w ↻ ht_kat_span sys_mmap ↻ ht_len ↻ hs_escape ↻ hs_cat_esc_span hs_emit ↻

structs

none

consts

none

functions

7func 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 }
8func ht_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
11func ht_kat(id: i64, inp: *u8, want: *u8) -> i64
32func ht_kat_span(id: i64, inp: *u8, want: *u8) -> i64
54func ht_kat_esc(id: i64, inp: *u8, want: *u8) -> i64
called by 1: main calls 4: sys_mmaphs_escapeht_lenht_w
68func main() -> i64