Update vendoring. (#1257)
* Update vendoring. Update vendoring to latest upstream. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
cb9e23c536
commit
dc4c58671d
257 changed files with 39320 additions and 7619 deletions
4
vendor/github.com/mdlayher/netlink/attribute.go
generated
vendored
4
vendor/github.com/mdlayher/netlink/attribute.go
generated
vendored
|
|
@ -49,7 +49,7 @@ func (a *Attribute) unmarshal(b []byte) error {
|
|||
a.Length = nlenc.Uint16(b[0:2])
|
||||
a.Type = nlenc.Uint16(b[2:4])
|
||||
|
||||
if nlaAlign(int(a.Length)) > len(b) {
|
||||
if int(a.Length) > len(b) {
|
||||
return errInvalidAttribute
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ func UnmarshalAttributes(b []byte) ([]Attribute, error) {
|
|||
var attrs []Attribute
|
||||
var i int
|
||||
for {
|
||||
if len(b[i:]) == 0 {
|
||||
if i > len(b) || len(b[i:]) == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue