mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Additional CVE-2021-3121 fix
This commit is contained in:
parent
3cc043cfd2
commit
9b54a72bb8
@ -166,7 +166,7 @@ func (m *Quantity) Unmarshal(data []byte) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if skippy < 0 {
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||||
return ErrInvalidLengthGenerated
|
return ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
Loading…
Reference in New Issue
Block a user