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

Fix potentially truncated int casts in $GENERATE code #1212

Merged
merged 1 commit into from
Jan 30, 2021

Conversation

tmthrgd
Copy link
Collaborator

@tmthrgd tmthrgd commented Jan 30, 2021

These were flagged by GitHub CodeQL code scanning as potential vulnerabilities or issues. Fixing them is easy and they are incorrect. The triggered rule is go/incorrect-integer-conversion.

Adding tests is less easy because int is 64-bits on most systems, including those we test on, so we can't consistently provoke a failure here.

These were flagged by GitHub CodeQL code scanning as potential
vulnerabilities or issues. Fixing them is easy and they are incorrect.

Adding tests is less easy because int is 64-bits on most systems,
including those we test on, so we can't consistently provoke a failure
here.
@tmthrgd tmthrgd requested a review from miekg January 30, 2021 05:17
@miekg miekg merged commit f9dc403 into miekg:master Jan 30, 2021
@tmthrgd tmthrgd deleted the generate-int-cast branch January 30, 2021 09:08
aanm pushed a commit to cilium/dns that referenced this pull request Jul 29, 2022
These were flagged by GitHub CodeQL code scanning as potential
vulnerabilities or issues. Fixing them is easy and they are incorrect.

Adding tests is less easy because int is 64-bits on most systems,
including those we test on, so we can't consistently provoke a failure
here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants