Prevent fuzzer using wizloadlua and wizloaddes

Otherwise the fuzzer will enter a nonexistent file name, and stop.
This commit is contained in:
Pasi Kallinen
2019-12-20 13:48:36 +02:00
parent 193f369e5d
commit 98cb3ff161

View File

@@ -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;