diff options
author | tb <> | 2020-12-16 18:35:59 +0000 |
---|---|---|
committer | tb <> | 2020-12-16 18:35:59 +0000 |
commit | 25fba608b24a7bf868f7cd6c3cb19e964a7ffcd4 (patch) | |
tree | c14be4d2e2975a01d1db395a96d115e44073875b /src/regress/lib/libc/regex | |
parent | cb6846b13d05fa51adb1c44b76664e35c71791b8 (diff) | |
download | openbsd-25fba608b24a7bf868f7cd6c3cb19e964a7ffcd4.tar.gz openbsd-25fba608b24a7bf868f7cd6c3cb19e964a7ffcd4.tar.bz2 openbsd-25fba608b24a7bf868f7cd6c3cb19e964a7ffcd4.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/regex')
0 files changed, 0 insertions, 0 deletions