From 8fad22bf840fc968171bee6cf294f026eb1e0d3a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 9 Aug 2022 12:40:58 +0200 Subject: prog: generate very long file names Generate very long file names once in a while to provoke bugs like: https://github.com/google/gvisor/commit/f857f268eceb1cdee0b2bdfa218c969c84033fcd --- sys/test/init.go | 1 + sys/test/test.txt | 2 ++ 2 files changed, 3 insertions(+) (limited to 'sys/test') diff --git a/sys/test/init.go b/sys/test/init.go index ee2281f70..1da6bbf52 100644 --- a/sys/test/init.go +++ b/sys/test/init.go @@ -10,4 +10,5 @@ import ( func InitTarget(target *prog.Target) { target.MakeDataMmap = targets.MakeSyzMmap(target) + target.SpecialFileLenghts = []int{3, 256} } diff --git a/sys/test/test.txt b/sys/test/test.txt index a8e0a39fd..c780d5fe9 100644 --- a/sys/test/test.txt +++ b/sys/test/test.txt @@ -747,6 +747,8 @@ mutate5(filename ptr[in, filename], flags flags[open_flags]) fd mutate6(fd fd, data ptr[in, array[int8]], size bytesize[data]) mutate7(a0 ptr[in, string], a1 len[a0]) mutate8(a0 proc[100, 4, opt]) +mutate9(filename ptr[in, filename]) +mutate10(filename ptr[out, filename]) # Test for arguments mutation mutate_integer(b1 bool8, b2 bool8, b3 bool8, b4 bool8, b5 bool8, b6 bool8, b7 bool8, b8 bool8, i9 int64) -- cgit mrf-deployment