You need to sign in or sign up before continuing.
self_relative_ptr: fix UB when adding non-zero offset to possibly null pointer
Cast 'this' to integer type instead of casting to pointer type. Original implementation resulted in the following error for self_relative_ptr_atomic test: "runtime error: pointer index expression with base 0x7ffc7773e7c0 overflowed to 0xfffffffffffffffe"
parent
21534230
Please register or sign in to comment