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 Tue, Sep 17, 7:28 PM
Parents
rP3049fddd4461: Low: libcrmcommon: handle too-negative components of ISO8601 durations
Branches
Unknown
Tags
Unknown