summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_null.c
diff options
context:
space:
mode:
authorjsing <>2023-02-14 18:19:27 +0000
committerjsing <>2023-02-14 18:19:27 +0000
commit9ce34d33ab5e28ffa5d1cd29ccc09a8651396e96 (patch)
tree518ba504bb3bbd0ffd8b0f4c083c1f3d81b99dd7 /src/lib/libcrypto/ui/ui_null.c
parentc7a2e8ba6107b06cc3b3a4ac5577d2469643f574 (diff)
downloadopenbsd-9ce34d33ab5e28ffa5d1cd29ccc09a8651396e96.tar.gz
openbsd-9ce34d33ab5e28ffa5d1cd29ccc09a8651396e96.tar.bz2
openbsd-9ce34d33ab5e28ffa5d1cd29ccc09a8651396e96.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_null.c')
0 files changed, 0 insertions, 0 deletions