summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authortb <>2021-12-26 15:16:50 +0000
committertb <>2021-12-26 15:16:50 +0000
commitc8d92e7494cde45554fdc18c66728a2adbe1bb71 (patch)
tree6a671dbeeec853ee17f157f9b538e98cd605b1c5 /src/lib/libc/stdlib/system.c
parent9656351e09b56a51fb7279fc55f9ec06f3459223 (diff)
downloadopenbsd-c8d92e7494cde45554fdc18c66728a2adbe1bb71.tar.gz
openbsd-c8d92e7494cde45554fdc18c66728a2adbe1bb71.tar.bz2
openbsd-c8d92e7494cde45554fdc18c66728a2adbe1bb71.zip
Consistently call BN_init() before BN_with_flags()
BN_with_flags() preserves the BN_FLG_MALLOCED flag of the destination which results in a potential use of an uninitialized bit. In practice this doesn't matter since we don't free the cloned BIGNUMs anyway. As jsing points out, these are mostly pointless noise and should be garbage collected. I'll leave that for another rainy day. Coverity flagged one instance BN_gcd_no_branch(), the rest was found by the ever so helpful grep(1). CID 345122 ok jsing
Diffstat (limited to 'src/lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions