go-macaroon / macaroon

A native Go implementation of macaroons
BSD 3-Clause "New" or "Revised" License
182 stars 24 forks source link

Check for excess data in UnmarshalBinary #33

Open pbrook opened 6 years ago

pbrook commented 6 years ago

Return an error if the provided binary data is longer than we are expecting. This is consistent with how other types (e.g. time.Time) handle this situation.