From 033fe6d70aa2c6bb64b33668c07eb5db522f9957 Mon Sep 17 00:00:00 2001 From: Sevki Date: Tue, 21 Jul 2020 19:42:04 +0100 Subject: p9: fix `registry.get` ob1 bug --- pkg/p9/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/p9') diff --git a/pkg/p9/messages.go b/pkg/p9/messages.go index 57b89ad7d..2cb59f934 100644 --- a/pkg/p9/messages.go +++ b/pkg/p9/messages.go @@ -2506,7 +2506,7 @@ type msgFactory struct { var msgRegistry registry type registry struct { - factories [math.MaxUint8]msgFactory + factories [math.MaxUint8 + 1]msgFactory // largestFixedSize is computed so that given some message size M, you can // compute the maximum payload size (e.g. for Twrite, Rread) with -- cgit v1.2.3