perftest icon indicating copy to clipboard operation
perftest copied to clipboard

Integer overflow issue

Open r-barnes opened this issue 1 year ago • 1 comments

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);;

r-barnes avatar Feb 02 '24 22:02 r-barnes

suggested fix: https://github.com/linux-rdma/perftest/pull/250 can you please review?

sshaulnv avatar Feb 26 '24 08:02 sshaulnv