summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/cms.c
diff options
context:
space:
mode:
authortb <>2021-12-26 15:16:50 +0000
committertb <>2021-12-26 15:16:50 +0000
commit8bbb1196379de707bb70e7d4ef92d3d214ec58bb (patch)
tree6a671dbeeec853ee17f157f9b538e98cd605b1c5 /src/usr.bin/openssl/cms.c
parenta2d5fa10de4afe08bd921a797a3634815bf0f460 (diff)
downloadopenbsd-8bbb1196379de707bb70e7d4ef92d3d214ec58bb.tar.gz
openbsd-8bbb1196379de707bb70e7d4ef92d3d214ec58bb.tar.bz2
openbsd-8bbb1196379de707bb70e7d4ef92d3d214ec58bb.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/usr.bin/openssl/cms.c')
0 files changed, 0 insertions, 0 deletions