aboutsummaryrefslogtreecommitdiffstats
path: root/sys/test
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-08-09 12:40:58 +0200
committerDmitry Vyukov <dvyukov@google.com>2022-08-10 11:45:49 +0200
commit8fad22bf840fc968171bee6cf294f026eb1e0d3a (patch)
tree2bad644606904f4e75ef6fe689bac49e91877c40 /sys/test
parenta12254451cfa5e5129a0c091255d502b6805adf6 (diff)
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
Diffstat (limited to 'sys/test')
-rw-r--r--sys/test/init.go1
-rw-r--r--sys/test/test.txt2
2 files changed, 3 insertions, 0 deletions
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)