bug fix:goroutine security improved

This commit is contained in:
2020-12-23 20:50:57 +08:00
parent 79dcaaf249
commit 07e374b83f
4 changed files with 73 additions and 20 deletions
+8
View File
@@ -27,3 +27,11 @@ func Decode(src []byte) (interface{}, error) {
err := dec.Decode(&dst)
return dst, err
}
func (nmsg *SMsg) Decode() (interface{}, error) {
return Decode([]byte(nmsg.Value))
}
func (nmsg *CMsg) Decode() (interface{}, error) {
return Decode([]byte(nmsg.Value))
}