code wiki / _hdl_build / nx_tok_attr_probe.nx
nx_tok_attr_probe.nx
buildroot/runtime/_hdl_build/nx_tok_attr_probe.nx
about
nx_tok_attr_probe.nx -- ISOLATE the attribute-text leak (task #9, 2026-07-27).
Hypothesis: nx_html_next_token's attribute-skip loop does not track quote state, so a
'>' INSIDE a quoted attribute value ends the tag early and the tag's remainder leaks as
a TEXT token that then paints as visible content. Drives the tokenizer directly and
concatenates every TEXT token; a row FAILS if the text carries attribute bytes.
Control rows (C*) MUST pass, so a failing S* row is a real defect, not a broken probe.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_html_tokenizer.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
| 9 | const K_MAGIC_4096: i64 = 4096 |
functions
| 11 | func tp_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func tp_text(html: *u8, hlen: i64, out: *u8, cap: i64) -> i64 |
| 35 | func tp_has(out: *u8, n: i64, needle: *u8) -> i64 called by 1: tp_row |
| 51 | func tp_row(label: *u8, html: *u8, want: *u8, bad: *u8, pp: *i64, tp: *i64) -> i64 |
| 67 | func main() -> i64 |