iovisor/ubpf

Code analysis errors

dthaler opened this issue · 0 comments

Code analysis compiling ubpf as a submodule under ebpf-for-windows reports:

     D:\a\ebpf-for-windows\ebpf-for-windows\external\ubpf\vm\ubpf_vm.c(344): error C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2). [D:\a\ebpf-for-windows\ebpf-for-windows\libs\ubpf\user\ubpf_user.vcxproj]
     D:\a\ebpf-for-windows\ebpf-for-windows\external\ubpf\vm\ubpf_vm.c(340): error C26451: Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '<<' to avoid overflow (io.2).