diff options
author | jsing <> | 2025-05-25 04:16:36 +0000 |
---|---|---|
committer | jsing <> | 2025-05-25 04:16:36 +0000 |
commit | 007dbe05ae354e7202733f4217948276624e0e9f (patch) | |
tree | 1d4816bddc9a0cb0376f952d4ccf4c4cf05bd1ce /src/lib/libc/stdlib/erand48.c | |
parent | ba8ffad16ca3187163f8568895cd4524aa158559 (diff) | |
download | openbsd-007dbe05ae354e7202733f4217948276624e0e9f.tar.gz openbsd-007dbe05ae354e7202733f4217948276624e0e9f.tar.bz2 openbsd-007dbe05ae354e7202733f4217948276624e0e9f.zip |
Fix handling of different length inputs in bn_sub().
In the diff_len < 0 case, it incorrectly uses 0 - b[0], which mishandles
the borrow - fix this by using bn_subw_subw(). Do the same in the
diff_len > 0 case for consistency. Note that this is never currently
reached since BN_usub() requires a >= b.
ok beck@ tb@
Diffstat (limited to 'src/lib/libc/stdlib/erand48.c')
0 files changed, 0 insertions, 0 deletions