diff options
author | Ingo Klöcker <[email protected]> | 2022-06-10 09:54:03 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-06-10 09:54:03 +0000 |
commit | 7870fdbfeff47755138136dbd6648b18f6b4fc76 (patch) | |
tree | 9f0c26667a61b7961ad089e26a1871df7ffac912 /lang/cpp/src | |
parent | Revert "tests: Avoid problems with local time across a day boundary." (diff) | |
download | gpgme-7870fdbfeff47755138136dbd6648b18f6b4fc76.tar.gz gpgme-7870fdbfeff47755138136dbd6648b18f6b4fc76.zip |
qt: Prevent u32 overflow when calculating expiration date
* lang/qt/src/qgpgmesignkeyjob.cpp (sign_key): Change maxAllowedDate to
2106-02-05. Change log-level from warning to debug.
* lang/qt/tests/t-various.cpp (TestVarious::testSignKeyWithExpiration):
Remove check for warning. Adapt assertion.
--
Capping the expiration date at 2106-02-05 prevents a u32 overflow when
adding the number of days until the maximal date to the current time.
GnuPG-bug-id: 5991
Diffstat (limited to 'lang/cpp/src')
0 files changed, 0 insertions, 0 deletions