Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/rate: Make parsing of positive values more strict #14536

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

twpayne
Copy link
Contributor

@twpayne twpayne commented Jan 6, 2021

This fixes issues identified by CodeQL where strings were parsed as
unsigned integers and then converted to integers without a bounds check.

Refs #14514

Signed-off-by: Tom Payne tom@isovalent.com

@twpayne twpayne added the release-note/misc This PR makes changes that have no direct user impact. label Jan 6, 2021
@twpayne twpayne requested a review from a team as a code owner January 6, 2021 14:01
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Jan 6, 2021
@pchaigno pchaigno added the kind/cleanup This includes no functional changes. label Jan 6, 2021
This fixes issues identified by CodeQL where strings were parsed as
unsigned integers and then converted to integers without a bounds check.

Signed-off-by: Tom Payne <tom@isovalent.com>
@twpayne twpayne force-pushed the pr/twpayne/rate-int-conversion branch from 03c0da0 to dc2e43b Compare January 8, 2021 09:56
@twpayne
Copy link
Contributor Author

twpayne commented Jan 8, 2021

test-me-please

@twpayne
Copy link
Contributor Author

twpayne commented Jan 11, 2021

retest-net-next

@twpayne
Copy link
Contributor Author

twpayne commented Jan 11, 2021

test-gke

@twpayne
Copy link
Contributor Author

twpayne commented Jan 11, 2021

The Cilium-Ginkgo-GKE check is currently failing with messages like:

15:00:27  ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
15:00:27   - ResponseError: code=400, message=Operation operation-1610373623343-d02f397d is currently operating on cluster cilium-ci-21. Please wait and try again once it is done.

This seems unrelated to the changes in this PR.

@twpayne
Copy link
Contributor Author

twpayne commented Jan 11, 2021

retest-gke

1 similar comment
@twpayne
Copy link
Contributor Author

twpayne commented Jan 11, 2021

retest-gke

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jan 11, 2021
@gandro gandro merged commit 3c42222 into master Jan 11, 2021
@gandro gandro deleted the pr/twpayne/rate-int-conversion branch January 11, 2021 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants