fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
244 stars 141 forks source link

Empty AVP Payload causes crash #163

Open samreidland opened 2 years ago

samreidland commented 2 years ago

If the data portion of an AVP is empty, the code crashes in avp.go DecodeFromBytes.

If data has a zero length, this crashes

} else {
    payload = data[8:]
    hdrLength = 8
}