code wiki / (root) / nx_html_render_test.nx

nx_html_render_test.nx

buildroot/runtime/nx_html_render_test.nx

7742 B202 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic html
docsdependenciesstructsconstsfunctions

about

nx_html_render_test.nx -- smoke + XSS-attack-vector tests. Exercises every context + every escape rule + the bounds-check + the known-XSS attack-string corpus. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_html_render.nx nx_html_render_test.nx

imports: nx_syscalls_x86_64.nxnx_html_render.nx

imported by: nobody (leaf or entry point)

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

main nxh_ctx_is_valid nxh_node_is_valid nxh_verdict_is_valid check_escape nx_html_escape nxh_ctx_is_valid ↻ nxh_put_bytes nxh_put nxh_url_safe nxh_put ↻ nxh_hex_nibble nxh_put_lit nxh_put ↻ bytes_eq nx_html_escape ↻ nx_html_open_tag nxh_put ↻ nxh_is_alnum nx_html_attr nxh_put ↻ nxh_is_attr_name_char nxh_is_alnum ↻ nx_html_escape ↻ nx_html_close_open_tag nxh_put ↻ nx_html_text nx_html_escape ↻ nx_html_end_tag nxh_put ↻ nxh_is_alnum ↻ bytes_eq ↻ nx_html_attr_url nxh_put ↻ nxh_put_bytes ↻ nx_html_escape ↻

structs

none

consts

none

functions

13func bytes_eq(a: *u8, b: *u8, n: i64) -> i64
called by 2: check_escapemain
24func check_escape(src: *u8, src_n: i64, ctx: i64,
called by 1: main calls 2: nx_html_escapebytes_eq
36func main() -> i64