Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 3e14b2fcf59b5b88b289caa973f0b8748c93a594
      
https://github.com/Perl/perl5/commit/3e14b2fcf59b5b88b289caa973f0b8748c93a594
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2024-08-11 (Sun, 11 Aug 2024)

  Changed paths:
    M ext/POSIX/t/time.t
    M locale.c

  Log Message:
  -----------
  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.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to