Skip to content
Commit fadfc8ec authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Cast to an unsigned type before negating



llvm's ubsan reported:
runtime error: negation of -9223372036854775808 cannot be represented in
type 'int64_t' (aka 'long'); cast to an unsigned type to negate this
value to itself

Found using libfuzzer

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>

GH: #1908
(cherry picked from commit e80f3b6a)
parent 0f251d20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment