summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_lib.c
diff options
context:
space:
mode:
authorjsing <>2023-02-14 18:19:27 +0000
committerjsing <>2023-02-14 18:19:27 +0000
commitfacea515d845f4df27719fa12f3aae9eb2fc2baf (patch)
tree518ba504bb3bbd0ffd8b0f4c083c1f3d81b99dd7 /src/lib/libcrypto/ui/ui_lib.c
parentbd079ed10dbf7446265e4066080fb42d9bdd707c (diff)
downloadopenbsd-facea515d845f4df27719fa12f3aae9eb2fc2baf.tar.gz
openbsd-facea515d845f4df27719fa12f3aae9eb2fc2baf.tar.bz2
openbsd-facea515d845f4df27719fa12f3aae9eb2fc2baf.zip
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@
Diffstat (limited to 'src/lib/libcrypto/ui/ui_lib.c')
0 files changed, 0 insertions, 0 deletions