From dd4fcef5a270fc39a56c0be8122fc6f18314f3cd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 17 Feb 2018 16:51:52 +0100 Subject: pkg/compiler: allow len of var-len arrays All netfilter subsystems use this unfortunately, so demote this to a warning. --- prog/size.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prog') diff --git a/prog/size.go b/prog/size.go index e2451fe15..67f7ef754 100644 --- a/prog/size.go +++ b/prog/size.go @@ -127,6 +127,9 @@ func (r *randGen) mutateSize(arg *ConstArg, parent []Arg) bool { case *VmaType: return false case *ArrayType: + if targetType.Type.Varlen() { + return false + } elemSize = targetType.Type.Size() } } -- cgit mrf-deployment