Skip to main content

register_silent

Function register_silent 

Source
pub fn register_silent(linker: &mut Linker<SessionData>) -> Result<()>
Expand description

Links a NO-OP env.log for the render surface. Eval-mode modules always import env.log (PRINT/DISPLAY/DEBUG lower to it), so the import must resolve — but a template is untrusted source with no legitimate output channel, so render discards the message entirely: no per-request buffer append, no tracing tee. This closes the log-flood / unbounded-host-memory side channel a real env.log would hand an attacker-controlled template.