summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtonum.c
diff options
context:
space:
mode:
authorjsing <>2025-05-25 04:16:36 +0000
committerjsing <>2025-05-25 04:16:36 +0000
commit007dbe05ae354e7202733f4217948276624e0e9f (patch)
tree1d4816bddc9a0cb0376f952d4ccf4c4cf05bd1ce /src/lib/libc/stdlib/strtonum.c
parentba8ffad16ca3187163f8568895cd4524aa158559 (diff)
downloadopenbsd-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/strtonum.c')
0 files changed, 0 insertions, 0 deletions