Skip to content

Commit 4e690e6

Browse files
committed
Fix false assertion in policy_evaluation fuzz target
1 parent 1a119a1 commit 4e690e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/fuzz/fuzz_targets/policy_evaluation.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ fuzz_target!(|input: Input| {
222222
);
223223
}
224224
EdgeCaseVariant::OnlyComments => {
225-
assert!(
226-
result.is_err(),
227-
"comments-only policy must be rejected",
228-
);
225+
// Comments-only input doesn't start with "policy" keyword,
226+
// so the parser treats it as an implicit inline policy — valid.
229227
}
230228
_ => {}
231229
}

0 commit comments

Comments
 (0)