From 98cb3ff161f712355e13948f8f4e8b375ee0dc68 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 20 Dec 2019 13:48:36 +0200 Subject: [PATCH] Prevent fuzzer using wizloadlua and wizloaddes Otherwise the fuzzer will enter a nonexistent file name, and stop. --- src/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 31b3397c7..fa9e4cae6 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -943,7 +943,7 @@ wiz_detect(VOID_ARGS) static int wiz_load_lua(VOID_ARGS) { - if (wizard) { + if (wizard && !iflags.debug_fuzzer) { char buf[BUFSZ]; buf[0] = '\0'; @@ -961,7 +961,7 @@ wiz_load_lua(VOID_ARGS) static int wiz_load_splua(VOID_ARGS) { - if (wizard) { + if (wizard && !iflags.debug_fuzzer) { boolean was_in_W_tower = In_W_tower(u.ux, u.uy, &u.uz); char buf[BUFSZ]; int ridx;