summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc
diff options
context:
space:
mode:
authortb <>2020-12-16 18:35:59 +0000
committertb <>2020-12-16 18:35:59 +0000
commit7acd284c4d78238b8bbf000888d4202db260a247 (patch)
treec14be4d2e2975a01d1db395a96d115e44073875b /src/regress/lib/libc
parentd3ac08178a3af38a0a297989a450a0563d1bf210 (diff)
downloadopenbsd-7acd284c4d78238b8bbf000888d4202db260a247.tar.gz
openbsd-7acd284c4d78238b8bbf000888d4202db260a247.tar.bz2
openbsd-7acd284c4d78238b8bbf000888d4202db260a247.zip
Avoid potential use of uninitialized in ASN1_time_parse
When parsing an UTCTime into a struct tm that wasn't cleared by the caller, the years would be added to the already present value, which could give an incorrect result. This is an issue in ASN1_UTCTIME_cmp_time_t(), which is practically unused. Fix this by always zeroing the passed struct tm. Issue reported by Olivier Taïbi, thanks! ok jsing
Diffstat (limited to 'src/regress/lib/libc')
0 files changed, 0 insertions, 0 deletions