From 026aaeb2b5393e0c838873306e1c5f2084a8a1aa Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 5 Jan 2020 11:46:35 +0100 Subject: prog: don't mutate strings with enumerated values Strings with enumerated values are frequently file names or have complete enumeration of relevant values. Mutating complete enumeration if not very profitable. Mutating file names leads to escaping paths and fuzzer messing with things it is not supposed to mess with as in: r0 = openat$apparmor_task_exec(0xffffffffffffff9c, &(0x7f0000000440)='/proc/self//exe\x00', 0x3, 0x0) --- executor/syscalls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/syscalls.h') diff --git a/executor/syscalls.h b/executor/syscalls.h index c5c2dda54..82d610197 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -21431,6 +21431,8 @@ const call_t syscalls[] = { {"test$res1", 0}, {"test$res2", 0}, {"test$str0", 0}, + {"test$str1", 0}, + {"test$str2", 0}, {"test$struct", 0}, {"test$syz_union3", 0}, {"test$syz_union4", 0}, -- cgit mrf-deployment