Skip to content

Commit

Permalink
Merge pull request #101335 from joelsmith/automated-cherry-pick-of-#1…
Browse files Browse the repository at this point in the history
…01306-upstream-release-1.18

[1.18] Automated cherry pick of #101306: Additional CVE-2021-3121 fix
  • Loading branch information
k8s-ci-robot committed Apr 21, 2021
2 parents a5d842b + a9e1294 commit 3d47d83
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -166,7 +166,7 @@ func (m *Quantity) Unmarshal(data []byte) error {
if err != nil {
return err
}
if skippy < 0 {
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
Expand Down

0 comments on commit 3d47d83

Please sign in to comment.