From 7a93787dfe5cdaba3eed98ed8edd19674186430b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 26 Apr 2025 19:05:51 +0200 Subject: Add fuzzer assert callback to framework. --- tools/fuzz.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/fuzz.js') diff --git a/tools/fuzz.js b/tools/fuzz.js index 0690697..a547f68 100644 --- a/tools/fuzz.js +++ b/tools/fuzz.js @@ -115,8 +115,8 @@ exports.fuzz = function (fuzzerInputData) { try { ctx.state = rules.action(ctx.state, ctx.active, action, arg) - if (typeof rules.assert_state === "function") - rules.assert_state(ctx.state) + if (typeof rules.assert === "function") + rules.assert(ctx.state) } catch (e) { ctx.state = prev_state return log_crash(e, ctx, action, arg) -- cgit v1.2.3