aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/warnings.txt
blob: 99b59e5edc4eed9ac2c0939a4f5bc6cab43262e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2019 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

foo$suspicious_len(a len[b], b ptr[in, array[string]])	### len target b refer to an array with variable-size elements (do you mean bytesize?)
foo$suspicious_len2(a ptr[in, suspicious_len_struct], b ptr[in, suspicious_len_struct])
foo$suspicious_len3(a ptr[in, suspicious_len_template[string]], b ptr[in, suspicious_len_template[stringnoz]])

suspicious_len_struct {
	a	len[b, int32]			### len target b refer to an array with variable-size elements (do you mean bytesize?)
	b	ptr[in, array[string]]
}

type suspicious_len_template[T] {
	a	len[b, int32]			### len target b refer to an array with variable-size elements (do you mean bytesize?)
	b	ptr[in, array[T]]
}

unsupported()						### unsupported syscall: unsupported due to missing const SYS_unsupported
unsupported$1()
foo(a const[NO_SUCH_CONST], b r0)		### unsupported syscall: foo due to missing const NO_SUCH_CONST
resource r0[int32]: NO_EITHER			### unsupported resource: r0 due to missing const NO_EITHER