opnsense-ports/misc/rumprun/files/patch-src-netbsd_sys_lib_libunwind_AddressSpace.hpp
Franco Fichtner e69e4a1fd1 */*: sync with upstream
Taken from: HardenedBSD
2018-01-16 20:42:50 +01:00

11 lines
344 B
C++

--- src-netbsd/sys/lib/libunwind/AddressSpace.hpp.orig 2018-01-14 23:12:55 UTC
+++ src-netbsd/sys/lib/libunwind/AddressSpace.hpp
@@ -140,7 +140,7 @@ public:
} while (byte >= 0x80);
// sign extend negative numbers
if ((byte & 0x40) != 0)
- result |= (-1LL) << bit;
+ result |= (~0ULL) << bit;
return result;
}