From e21996d62fd535f6b905942f62bec3f5bb407b08 Mon Sep 17 00:00:00 2001 From: Darya Parygina Date: Wed, 29 Nov 2023 12:14:30 +0300 Subject: [PATCH] Fix --- casr/src/bin/casr-js.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/casr/src/bin/casr-js.rs b/casr/src/bin/casr-js.rs index a56cfaa5..221c92b9 100644 --- a/casr/src/bin/casr-js.rs +++ b/casr/src/bin/casr-js.rs @@ -113,10 +113,10 @@ fn main() -> Result<()> { }; path_to_tool = full_path_to_tool; let fname = fname.to_string_lossy(); - if (fname.ends_with("node") || fname.ends_with("jsfuzz")) && argv[1].ends_with(".js") { + if (fname == "node" || fname == "jsfuzz") && argv[1].ends_with(".js") { report.executable_path = argv[1].to_string(); } else if argv.len() > 2 - && fname.ends_with("npx") + && fname == "npx" && argv[1] == "jazzer" && argv[2].ends_with(".js") {