utcs-scea / ava

Automatic virtualization of (general) accelerators.
https://ava.yuhc.me/
BSD 2-Clause "Simplified" License
40 stars 20 forks source link

[BUG] unsigned len is set to -1 #151

Open photoszzt opened 3 years ago

photoszzt commented 3 years ago

Describe the bug https://github.com/utcs-scea/ava/blob/2bf00b30460997d83c691d3a1eeb166c5d12d02b/common/endpoint_lib.cpp#L259-L261 Comparing signed and unsigned integers. Here len is unsigned but its set to -1 which causes an overflow.