Avoid -0 in BN_div_word().
authorjsing <jsing@openbsd.org>
Sat, 11 Mar 2023 14:14:54 +0000 (14:14 +0000)
committerjsing <jsing@openbsd.org>
Sat, 11 Mar 2023 14:14:54 +0000 (14:14 +0000)
commitb5c6728d03d2d12fc64dfa3ceebc8296184e7781
tree94a7a510da01fc3ce3179d0ba0e8e2497eb8b12f
parent2e57f206af23fa891cf2225aa15a0dfd10eefa14
Avoid -0 in BN_div_word().

Currently, the use of BN_div_word() can result in -0 - avoid this by
setting negative again, at the end of the computation.

Should fix oss-fuzz 56667.

ok tb@
lib/libcrypto/bn/bn_word.c