This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Uninitialized tmbuf.
Fix for Coverity perl5 CID 29088: Uninitialized scalar variable (UNINIT)
uninit_use: Using uninitialized value tmbuf.tm_year.
There is a code path that can lead to accessing uninitialized tmbuf:
when the too-small or too-large time inputs to gmtime/localtime
happen.
- make it so that the tm_year is used only on successful code path:
pp_sys.c
- add the gmtime failed / localtime failed errors to perldiag:
pod/perldiag.pod
- test those errors: t/op/time.t