iovisor / ubpf

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

Mask the high bits when doing shift operations #485

Closed Alan-Jowett closed 5 months ago

Alan-Jowett commented 5 months ago

Resolves: #411

Mask the high bits when doing arithmetic shift operations to prevent undefined behavior.

coveralls commented 5 months ago

Coverage Status

coverage: 81.279%. remained the same when pulling a0aa10a42def0f0146ac86ee1de8df2940db02df on Alan-Jowett:issue411 into 1086d004f6e25a531a711855bcd984f54e8d43e7 on iovisor:main.