Skip to content

Avoid creating an out-of-bounds pointer when parsing dates

If cur[0] is the end of the string advancing cur by two creates a more than one past the end pointer which is not permitted by ISO C. This was found when building with UBSan on a Morello system where out-of-bounds pointers can be detected precisely.

Merge request reports