diff options
author | tb <> | 2020-12-16 18:35:59 +0000 |
---|---|---|
committer | tb <> | 2020-12-16 18:35:59 +0000 |
commit | 7acd284c4d78238b8bbf000888d4202db260a247 (patch) | |
tree | c14be4d2e2975a01d1db395a96d115e44073875b /src/regress/lib/libc | |
parent | d3ac08178a3af38a0a297989a450a0563d1bf210 (diff) | |
download | openbsd-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