shared/calendarspec: do not allocate a big string on stack

The string can be as long as a logical line in a unit file — so no unlimited,
but quite big. Let's use a normal heap allocation when making a copy.

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13125
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-02-16 23:31:07 +01:00
parent 7321d504e6
commit ea53cfd195
2 changed files with 21 additions and 3 deletions
File diff suppressed because one or more lines are too long