bug fix:goroutine security improved
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user