code wiki / _hdl_build / nx_html_sanitize_test.nx
nx_html_sanitize_test.nx
buildroot/runtime/_hdl_build/nx_html_sanitize_test.nx
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
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
structs
| none |
consts
| none |
functions
| 7 | func 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 } |
| 8 | func ht_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 11 | func ht_kat(id: i64, inp: *u8, want: *u8) -> i64 |
| 32 | func ht_kat_span(id: i64, inp: *u8, want: *u8) -> i64 |
| 54 | func ht_kat_esc(id: i64, inp: *u8, want: *u8) -> i64 |
| 68 | func main() -> i64 |