mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
manifest: limit its size when decoding
This commit is contained in:
parent
f318e573d4
commit
63c7469dfd
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ func (m *Manifest) EncodeBinary(w *io.BinWriter) {
|
|||
|
||||
// DecodeBinary implements io.Serializable.
|
||||
func (m *Manifest) DecodeBinary(r *io.BinReader) {
|
||||
data := r.ReadVarBytes()
|
||||
data := r.ReadVarBytes(MaxManifestSize)
|
||||
if r.Err != nil {
|
||||
return
|
||||
} else if err := json.Unmarshal(data, m); err != nil {
|
||||
|
|
Loading…
Reference in a new issue