Skip to content

Detect invalid durations

Matthijs Mekking requested to merge 4624-duration-error-checking into main

Be stricter in durations that are accepted. Basically we accept ISO 8601 formats, but fail to detect garbage after the integers in such strings.

For example, 'P7.5D' will be treated as 7 days. Pass 'endptr' to 'strtoll' and check if the endptr is at the correct suffix.

Closes #4624 (closed)

Merge request reports