syzkaller/prog
Dmitry Vyukov 335cf4f4fd prog: fix crash in createResource
We may be in createResource but have no resources at all because of ANYRES
that are not in target.Resources.
This is actually the case for some test targets. We have resources there,
but syscalls that create them are disabled.
In such case we crash in Intn(0).
Check that we have some resources before calling Intn.
2019-04-23 18:59:49 +03:00
..
test all: fix some static analysis warnings 2019-04-23 17:58:54 +03:00
alloc_test.go .gometalinter.json: enable gofmt 2018-07-31 12:16:54 +02:00
alloc.go prog: fix a bunch of bugs in parsing 2019-03-29 08:56:02 +01:00
analysis.go prog: fix a bunch of bugs in parsing 2019-03-29 08:56:02 +01:00
any_test.go prog: introduce strict parsing mode 2018-12-10 16:37:01 +01:00
any.go prog, pkg/compiler: support fmt type 2018-07-08 22:52:24 +02:00
checksum_test.go pkg/csource: fix handling of proc types 2017-12-22 11:59:46 +01:00
checksum.go prog: fix checksum dependencies 2019-02-01 16:52:54 +01:00
clone.go prog: introduce debugValidate 2018-08-02 16:57:31 +02:00
decl_test.go sys/linux: add simple io_uring descriptions 2019-04-12 16:19:23 +02:00
decodeexec.go all: fix some static analysis warnings 2019-04-23 17:58:54 +03:00
encoding_test.go prog, pkg/csource: more readable serialization for strings 2018-12-15 15:17:13 +01:00
encoding.go prog, pkg/compiler: fix warnings 2019-03-29 19:04:30 +01:00
encodingexec_test.go prog: fix checksum dependencies 2019-02-01 16:52:54 +01:00
encodingexec.go prog, pkg/csource: more readable serialization for strings 2018-12-15 15:17:13 +01:00
export_test.go all: fix warnings pointed to by golangci-lint 2019-03-28 15:30:18 +01:00
generation.go prog: introduce debugValidate 2018-08-02 16:57:31 +02:00
hints_test.go Update hints_test.go 2019-01-07 10:01:28 +01:00
hints.go prog: don't produce the same program when mutating with hints 2019-01-03 13:39:30 +01:00
minimization_test.go prog: introduce strict parsing mode 2018-12-10 16:37:01 +01:00
minimization.go prog: export Type.DefaultArg 2018-12-06 18:55:46 +01:00
mutation_test.go prog: speed up TestResourceCtors 2018-12-31 12:32:14 +01:00
mutation.go prog: add concept of "special pointers" 2018-08-30 21:45:03 -07:00
norace_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
parse_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
parse.go prog: introduce strict parsing mode 2018-12-10 16:37:01 +01:00
prio_test.go prog: add a test for ChoiceTable 2019-02-21 10:08:34 +01:00
prio.go prog: detect invalid target.Syscalls in BuildChoiceTable 2018-12-11 11:14:20 +01:00
prog_test.go all: switch to Go 1.12 2019-03-14 14:55:59 +01:00
prog.go sys/linux: prohibit opening /proc/self/exe 2019-02-08 16:30:44 +01:00
race_test.go prog: parallelize tests 2018-05-04 20:07:32 +02:00
rand_test.go prog: remove several sources of non-determinism 2019-01-03 12:23:57 +01:00
rand.go prog: fix crash in createResource 2019-04-23 18:59:49 +03:00
resources.go all: fix code formatting 2018-10-16 13:57:24 +02:00
size_test.go prog: introduce strict parsing mode 2018-12-10 16:37:01 +01:00
size.go prog: support AUTO args in programs 2018-12-10 16:37:02 +01:00
target.go prog: support AUTO args in programs 2018-12-10 16:37:02 +01:00
types.go pkg/csource: use 0 for missing syscall args 2018-12-27 13:11:57 +01:00
validation.go prog: fix a bunch of bugs in parsing 2019-03-29 08:56:02 +01:00