xlog: fix unsigned overflow in xlog_open()
Negating unsigned size_t value and then casting it to signed off_t type is very bad idea. On 32-bit platforms size_t is unsigned 32-bit type, whereas off_t is signed 64-bit type. See #2460
Please register or sign in to comment