-
Notifications
You must be signed in to change notification settings - Fork 681
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
Bump Go to 1.23.2 #6718
Bump Go to 1.23.2 #6718
Conversation
Marking as draft for now. There are gosec "G115: integer overflow conversion" errors, as well as some other lint errors that should be easier to fix. |
Signed-off-by: Tero Saarni <[email protected]>
Signed-off-by: Tero Saarni <[email protected]>
Signed-off-by: Tero Saarni <[email protected]>
I've fixed the simpler issues, but the remaining errors are gosec G115 integer overflow warnings. See details here. In some respect, the errors seem valid and could be viewed as bugs. Some come from inconsistencies between CRD API types and Envoy API types. Changing the API types now could break backward compatibility. While it could be theoretically possible to add bounds checks and consider how to propagate errors to handle these edge cases, I’m unsure if it is practical. There is also at least one interesting case where fixing the issue would require avoiding "range", since range index is for index := range values {
// then process int index in uint32 context
// will cause error: G115: integer overflow conversion int -> uint32
} Gosec seems only accept this if adding check for both I have some doubts there are meaningful ways to escalate thee errors so one option is to keep the G115 on, but disable it for each remaining error with What do you think? |
in our product, we use the same way:
|
Signed-off-by: Tero Saarni <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6718 +/- ##
==========================================
- Coverage 81.04% 81.03% -0.02%
==========================================
Files 133 133
Lines 20001 20006 +5
==========================================
+ Hits 16210 16212 +2
- Misses 3498 3500 +2
- Partials 293 294 +1
|
Thanks @izturn. I took this approach, except for couple of places, where I could fix the errors with small effort. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This pull request includes following changes