ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.87k stars 295 forks source link

Bug in parsing unicode strings #71

Closed fgrzadkowski closed 9 years ago

fgrzadkowski commented 9 years ago

method jsonU4 has a bug here: https://github.com/ugorji/go/blob/master/codec/json.go#L806

It should be: u = u*16 + uint32(v)

This method parses base 16 numbers, not decimal.