summaryrefslogtreecommitdiff
path: root/pceplib/pcep_utils_counters.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2023-01-17 10:21:39 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2023-01-17 10:21:39 -0300
commit0839d0c74269164cdc24184c40eb0c25b83483e3 (patch)
tree87d741035d1bad7a905e86187822c84416b0dd62 /pceplib/pcep_utils_counters.h
parent2273550f04a8255ea6df76c0aa8952eb85a01a84 (diff)
lib: fix gmtime_assafe potential issues
Changes: - Convert `unsigned int` to `time_t` to satisfy time truncation warnings even though at this point we had already used the modulus operator. - Avoid trying to access outside the bounds of the array `months` array has a size of 13 elements, but the code inside the loop uses `i + 1` to peek on the next month. Found by Coverity Scan (CID 1519752 and 1519769) Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pceplib/pcep_utils_counters.h')
0 files changed, 0 insertions, 0 deletions