summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorjsing <>2025-05-25 04:16:36 +0000
committerjsing <>2025-05-25 04:16:36 +0000
commit53d43909d135b928ff58dfdf0554e5e6b2eef4ab (patch)
tree1d4816bddc9a0cb0376f952d4ccf4c4cf05bd1ce /src/lib/libc/stdlib/malloc.3
parent05d2a9c66d6d77326bcdda5607d6a1cc119a16da (diff)
downloadopenbsd-53d43909d135b928ff58dfdf0554e5e6b2eef4ab.tar.gz
openbsd-53d43909d135b928ff58dfdf0554e5e6b2eef4ab.tar.bz2
openbsd-53d43909d135b928ff58dfdf0554e5e6b2eef4ab.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/malloc.3')
0 files changed, 0 insertions, 0 deletions