commit | b9308ae696b2c35e862636eec631d95ff958c33d | [log] [tgz] |
---|---|---|
author | Martin KaFai Lau <kafai@fb.com> | Sat Jun 02 09:06:50 2018 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Sat Jun 02 11:22:36 2018 -0700 |
tree | e6ec045510d123dbb9f6e1502e4c5aa809e88f6e | |
parent | b4b21a05b8fe7288087691e993c913a41fd6eb4b [diff] |
bpf: btf: Check array t->size This patch ensures array's t->size is 0. The array size is decided by its individual elem's size and the number of elements. Hence, t->size is not used and it must be 0. A test case is added to test_btf.c Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>