askama/testing/tests/ui/fuzzed_recursion_depth_mul_deref.rs
René Kijewski 4b8bd45844 parser: use drop guards to track nesting level
Not for all operations the nesting level was incremented when needed
and/or the un-incremented nesting level was used in subfunction calls.
Binary operators such as `*` did not properly increment the nesting
level.

This PR changes `Level` in such a way that it can be used to keep track
of the nesting level when used in a loop. It is now impossible to
accidentally refer to an old nesting level value.

Resolves <https://issues.oss-fuzz.com/issues/385256115>.
2024-12-27 04:31:24 +01:00

10 lines
150 B
Rust

use rinja::Template;
#[derive(Template)]
#[template(path = "fuzzed-recursion-mul-deref.txt")]
struct Filtered {
s: &'static str,
}
fn main() {}