go
go copied to clipboard
idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
Hi, I have to use `codec` to receive JSON format data from clients, and save it into database in Msgpack format. Then restore the object to JSON format and send...
File: https://github.com/ugorji/go/blob/master/codec/encode.go Details: A null pointer exception will occur. In github.com/ugorji/go/codec.Encoder.encode(interface{}): Dereference of an explicit null (nil) value ([CWE-476](http://cwe.mitre.org/data/definitions/476.html)) Screenshot:
2 vulnerability issues have been found in the module. Veracode Security Scanner reports it as medium level flaw. Please, fix the issues. CWE-73: External Control of File Name or Path:...
as the follow picture add go.sum? thanks!
File : https://github.com/ugorji/go/blob/master/codec/decode.go Error :The indicated dead code may have performed some action; that action will never occur. In github.com/ugorji/go/codec.Decoder.kMap(*github.com/ugorji/go/codec.codecFnInfo, reflect.Value): Code can never be reached because of a logical...
File : https://github.com/ugorji/go/blob/master/codec/encode.go Error - The indicated dead code may have performed some action; that action will never occur. In github.com/ugorji/go/codec.Encoder.encode(interface{}): Code can never be reached because of a logical...
File: Error Details: The indicated dead code may have performed some action; that action will never occur. In github.com/ugorji/go/codec.checkOverflow.SignedInt(uint64, bool): Code can never be reached because of a logical contradiction....
File: https://github.com/ugorji/go/blob/master/codec/json.go Details:The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.com/ugorji/go/codec.jsonParseInteger([]byte): An operation with non-constant operands that computes a result with...
As part of coverity scan in file `msgpack.go`: Details: 1. The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.com/ugorji/go/codec.msgpackDecDriver.DecodeInt64(int64): An operation...