01 · 7-MODE LEXICAL-MASKED AUTOMATON · MAGIC 0x56434e44
Byte-exact 7-mode lexical classification up to VERICULL_MAX_CLAIMS = 32.
Vericull classifies every UTF-8 byte across 7 lexical states: CODE, LINE_COMMENT (supporting backslash-newline splicing), BLOCK_COMMENT, DOUBLE_STRING, bounded SINGLE_CHAR (preserving Rust lifetime parameters like <'a, 'b> while masking '"' and '\\'), Rust r#*"..."#* raw strings, and C++11 R"delim(...)delim" raw strings.
{
"ruleId": "CWE-362",
"level": "error",
"locations": [{ "physicalLocation": { "artifactLocation": { "uri": "pkg/raft/lease_renew.go" } } }],
"properties": {
"has_static_invariant": 1,
"claims": [
{ "needle": "lease := node.currentLeasePtr()", "span_start": 0, "span_end": 0, "must_be_absent": 0 },
{ "needle": "lease.expiryUnixNano = proposedDeadline", "span_start": 0, "span_end": 0, "must_be_absent": 0 },
{ "needle": "node.mu.TryLock()", "span_start": 96, "span_end": 310, "must_be_absent": 1 }
]
}
}