Merge pull request #3218 from nspcc-dev/serialization-limits

Introduce stackitem serialization limits
This commit is contained in:
Roman Khimov 2023-11-22 21:28:25 +03:00 committed by GitHub
commit 25ef2c7f16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 179 additions and 46 deletions

View file

@ -459,7 +459,7 @@ func CreateManifest(di *DebugInfo, o *Options) (*manifest.Manifest, error) {
return m, fmt.Errorf("method %s is marked as safe but missing from manifest", name)
}
}
err = m.IsValid(util.Uint160{}) // Check as much as possible without hash.
err = m.IsValid(util.Uint160{}, true) // Check as much as possible without hash.
if err != nil {
return m, fmt.Errorf("manifest is invalid: %w", err)
}