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 4db95d0 commit 92b187cCopy full SHA for 92b187c
encoder/encoder.go
@@ -29,7 +29,9 @@ func initEncAndDecModes() {
29
panic(err)
30
}
31
32
- decMode, err = cbor.DecOptions{}.DecModeWithTags(ts)
+ decMode, err = cbor.DecOptions{
33
+ MaxArrayElements: 10485760, // Set to a reasonably high value, 10MiB
34
+ }.DecModeWithTags(ts)
35
if err != nil {
36
37
0 commit comments