We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e401b9 commit 06a466cCopy full SHA for 06a466c
cbor/decode.go
@@ -28,6 +28,8 @@ func Decode(dataBytes []byte, dest interface{}) (int, error) {
28
// Create a custom decoder that returns an error on unknown fields
29
decOptions := _cbor.DecOptions{
30
ExtraReturnErrors: _cbor.ExtraDecErrorUnknownField,
31
+ // This defaults to 32, but there are blocks in the wild using >64 nested levels
32
+ MaxNestedLevels: 256,
33
}
34
decMode, err := decOptions.DecMode()
35
if err != nil {
0 commit comments