summaryrefslogtreecommitdiff
path: root/tools/fuzz.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-26 19:05:51 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-29 00:39:06 +0200
commit7a93787dfe5cdaba3eed98ed8edd19674186430b (patch)
treef13e9ee68453472f77329df73e0dd2a20bda8e9e /tools/fuzz.js
parent1785e14b151a50ae76738a3461b38c44cc4bd587 (diff)
downloadserver-7a93787dfe5cdaba3eed98ed8edd19674186430b.tar.gz
Add fuzzer assert callback to framework.
Diffstat (limited to 'tools/fuzz.js')
-rw-r--r--tools/fuzz.js4
1 files changed, 2 insertions, 2 deletions
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)