Cast int64_t to uint64_t for negating
authortb <tb@openbsd.org>
Wed, 10 Aug 2022 12:06:28 +0000 (12:06 +0000)
committertb <tb@openbsd.org>
Wed, 10 Aug 2022 12:06:28 +0000 (12:06 +0000)
commite9bef7053c43231b63a0f514eb0c5ef6c7c8dbea
tree88b01e7f0a5e7fba5554e97064381b2e9c242a7b
parentdf54ae2dfdecc51a2dd092deb373b4b931c62ce1
Cast int64_t to uint64_t for negating

Avoid signed integer overflow by casting an int64_t to uint64_t before
negating. Same fix was applied in a_int.c -r1.44, but was forgotten to
be applied to a_enum.c.

ok jsing
lib/libcrypto/asn1/a_enum.c