]> git.ipfire.org Git - thirdparty/chrony.git/commit
getdate+nts+rtc: avoid some coverity false positives
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 May 2025 06:43:12 +0000 (08:43 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 May 2025 10:41:13 +0000 (12:41 +0200)
commitbda2ff77e831676c4e6b7c3de28c21e00424246a
tree08213f3b6e641fa5d606ea097ef887bde2818ce4
parent545bd59563d80aac2f48b89e6305937d72895fa3
getdate+nts+rtc: avoid some coverity false positives

Modify the code to avoid making the following calls incorrectly reported
as important findings by the coverity static analyzer:

- memset() of size 0 at the end of an array
- mktime() on a struct tm that has uninitialized tm_yday
getdate.y
nts_ke_server.c
rtc_linux.c