Issue #2773: under raw-sinks = warn a part from outside that reaches html::Raw through a…

Open and answer this issue on GitHub.

ready, safety, queued · opened 2026-11-22 · updated 2026-11-29 · 1 comment

Filed by the driver from the Found: of the run of issue-2524 (#2524) (owner, 2026-11-06).

Found

under raw-sinks = warn a part from outside that reaches html::Raw through a parameter is neither checked nor refused, no decision yet: use std::cli use std::html fn page(name: String) -> html::Raw throws { return html::Raw(f"<p>{name}</p>") } fn main() throws { let name = cli::args().nth(1) ?? "<b>"; println(page(name).as_str()) } builds with warning NK1308 at the call page(name) (“lets this build through”) and prints <p><b></p> on HEAD’s build; D7 says an unproved part is checked where the value is made. Traced: prover_walk.nika raw_sink_part reports a parameter’s outside origin at the caller, while raw_sink_checked_parts records a check only for a finding at the sink itself. Needs a decision on where the check goes: on the caller’s argument, or on the callee’s sink for every call

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Comments

keywan-ghadami, 2026-11-22

Decided (supervisor, by ADR-raw-sinks-1 D7): the check goes on the callee’s sink, for every call. The value is made at the html::Raw(...) / db::raw(...) site, so the check and its error belong there, as for any other part; the throw set already counts such a site (#2704). Only a proof of the parameter at every call (ADR-396 D1) removes it. A finding reported at the caller is not a check: a site that is neither proved nor checked must not build under warn (it stays NK1308, as in a function that does not throw). Text added to D7 (commit “ADR-raw-sinks-1 D7: a part from outside that reaches html::Raw or db::raw through a parameter …”).

To build (in addition to the items above)


Generated by Claude Code

Back to Open Issues