Cast to an unsigned type before negating
llvm's ubsan reported:
runtime error: negation of -9223372036854775808 cannot be represented in type
'long'; cast to an unsigned type to negate this value to itself
Found using afl
Reviewed-by: NRich Salz <rsalz@openssl.org>
GH: #1325
Showing
想要评论请 注册 或 登录