Skip to content

Commit

Permalink
expr fuzz: add missing ops. found thanks to oss fuzz coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Nov 21, 2023
1 parent e9bc1ee commit db3de4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fuzz/fuzz_targets/fuzz_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ static CMD_PATH: &str = "expr";

fn generate_expr(max_depth: u32) -> String {
let mut rng = rand::thread_rng();
let ops = ["+", "-", "*", "/", "%", "<", ">", "=", "&", "|"];
let ops = [
"+", "-", "*", "/", "%", "<", ">", "=", "&", "|", "!=", "<=", ">=", ":", "length", "substr",
];

let mut expr = String::new();
let mut depth = 0;
Expand Down

0 comments on commit db3de4e

Please sign in to comment.