CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2023/02/14 11:19:27
Modified files: lib/libcrypto/bn: bn_div.c Log message: Fix a -0 corner case in BN_div_internal() If the numerator is negative, the numerator and divisor are the same length (in words) and the absolute value of the divisor > the absolute value of the numerator, the "no_branch" case produces -0 since negative has already been set. Call BN_set_negative() at the end of the function to avoid this. ok tb@