]> git.ipfire.org Git - thirdparty/systemd.git/commit
calendarspec: use ADD_SAFE for repeat offset calculation
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 28 Mar 2026 21:56:41 +0000 (21:56 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 30 Mar 2026 09:55:33 +0000 (10:55 +0100)
commitde2a7614f1703cbba6d978333900a6cdbc401a84
tree9df0da39b60e628c71d25e47907204f63285b569
parent1eb2bd5aaf14650a3433767fc44ffaef85407b21
calendarspec: use ADD_SAFE for repeat offset calculation

Use overflow-safe ADD_SAFE() instead of raw addition when
computing the next matching calendar component with repeat.
On overflow, skip the component instead of using a bogus value.

CID#1548052

Follow-up for a2eb5ea79c53620cfcf616e83bfac0c431247f86
src/shared/calendarspec.c