Merge pull request #1241 from nspcc-dev/fix/string
Ensure strings are valid UTF-8 where appropriate
This commit is contained in:
commit
00671deb8f
10 changed files with 68 additions and 46 deletions
|
@ -129,7 +129,7 @@ func (s *storagePlugin) syscallHandler(v *vm.VM, id uint32) error {
|
|||
}
|
||||
|
||||
func (s *storagePlugin) Notify(v *vm.VM) error {
|
||||
name := string(v.Estack().Pop().Bytes())
|
||||
name := v.Estack().Pop().String()
|
||||
item := stackitem.NewArray(v.Estack().Pop().Array())
|
||||
s.events = append(s.events, state.NotificationEvent{
|
||||
Name: name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue