HomeClusterLabs Projects

Low: libcrmcommon: handle corner cases better in crm_time_add_days()

Description

Low: libcrmcommon: handle corner cases better in crm_time_add_days()

Also, assert for an invalid argument, and add unit tests.

Unit test comparisons can be double-checked via
https://www.calculator.net/date-calculator.html

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=71576

Details

Provenance
kgaillotAuthored on Sep 17 2024, 7:28 PM
Parents
rPf847f03f27c6: Low: libcrmcommon: handle too-negative components of ISO8601 durations
Branches
Unknown
Tags
Unknown