xjasonlyu/tun2socks

View on GitHub
transport/shadowsocks/shadowaead/packet.go

Summary

Maintainability
A
35 mins
Test Coverage

Function Unpack has 5 return statements (exceeds 4 allowed).
Open

func Unpack(dst, pkt []byte, ciph Cipher) ([]byte, error) {
    saltSize := ciph.SaltSize()
    if len(pkt) < saltSize {
        return nil, ErrShortPacket
    }
Severity: Major
Found in transport/shadowsocks/shadowaead/packet.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status