Lukas Mai 3e14b2fcf5 locale: stringify strftime fmt before querying length/utf8ness
POSIX::strftime() can call sv_strftime_common() with arbitrary SVs.
SvCUR() assumes it is being called on an actual string. With other SV
types it can return garbage or just crash.

Make sure SvPV() is called first to stringify the format, before
SvUTF8() and SvCUR() inspect the SV.

Fixes #22498.
2024-08-11 22:39:55 +02:00
..
2022-12-06 06:40:49 -07:00
2024-07-01 19:05:32 -06:00