forked from nspcc-dev/neofs-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
container: Validate binary eACL input in
setEACL
method
Previously `setEACL` method could throw `invalid offset` fault exception about invalid eACL argument. This message is too generic, may occur in different places of execution code and doesn't help caller to realize the reason. To improve user experience, it's worth to check method arguments before slice instructions. Pre-check `eACL` slice length in `SetEACL` method implementation and throw responsive panic message. Ref nspcc-dev#329. Signed-off-by: Leonard Lyubich <[email protected]>
- Loading branch information
1 parent
8df64fe
commit ec467c9
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters