From 142411c1a7fb16e9c36c52d023fd891601aef65b Mon Sep 17 00:00:00 2001 From: Thomas Fossati Date: Mon, 24 Apr 2023 11:17:33 +0100 Subject: [PATCH] Fix CBOR tag range Fix CBOR tag range -- see CBOR jump table [1] [1] https://datatracker.ietf.org/doc/html/rfc8949#section-appendix.b Signed-off-by: Thomas Fossati --- cmw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmw.go b/cmw.go index d772c03..cd515e9 100644 --- a/cmw.go +++ b/cmw.go @@ -134,7 +134,7 @@ func sniff(b []byte) Serialization { if b[0] == 0x82 || b[0] == 0x83 { return CBORArray - } else if b[0] >= 0xc0 && b[0] <= 0xdf { + } else if b[0] >= 0xc0 && b[0] <= 0xdb { return CBORTag } else if b[0] == 0x5b { return JSONArray