iovisor / ubpf

Userspace eBPF VM
Apache License 2.0
829 stars 136 forks source link

Shifting 4byte then casting to 8byte may result in unexpected behavior #494

Closed Alan-Jowett closed 5 months ago

Alan-Jowett commented 5 months ago

Ensure that the value being shifted is 8bytes before shifting to prevent potential issues when assigning the result to 8byte value.

coveralls commented 5 months ago

Coverage Status

coverage: 81.261%. remained the same when pulling 06bae399c67b76f5baab1b370fa7ba890b3eebc8 on Alan-Jowett:fix_code_analysis_failure into 31f9f9eb965b488918a1572eb46b61af00f806a1 on iovisor:main.