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

Integer overflow issue #247

Open
r-barnes opened this issue Feb 2, 2024 · 1 comment
Open

Integer overflow issue #247

r-barnes opened this issue Feb 2, 2024 · 1 comment

Comments

@r-barnes
Copy link

r-barnes commented Feb 2, 2024

Is there any way to fix the integer overflow issue here? It's preventing me from enabling some warning flags in my project.

// cppcheck-suppress integerOverflow
uint32_t vlan_header = htonl(VLAN_TPID << 16 |
					((vlan_pcp & 0x7) << 13) | VLAN_VID | VLAN_CFI << 12);;
@sshaulnv
Copy link
Contributor

suggested fix: #250
can you please review?

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

No branches or pull requests

2 participants