p5-net-ssleay icon indicating copy to clipboard operation
p5-net-ssleay copied to clipboard

37_asn1_time.t fails on 32-bit Strawberry Perl 5.30.0.1 - 5.30.2.1

Open chrisnovakovic opened this issue 4 years ago • 2 comments

The ASN1_*-related functions give wildly incorrect results with 64-bit editions of Windows and the GCC in 32-bit versions of Strawberry Perl >= 5.30.0.1. We suspect this is the cause of the following smoke test failures in Net-SSLeay 1.89_01:

https://www.cpantesters.org/cpan/report/11408f94-6c8c-1014-bd64-355a9ee28768 https://www.cpantesters.org/cpan/report/d35ef3c0-6c47-1014-8a31-59579ee28768

#   Failed test 'P_ASN1_TIME_put2string'
#   at t/local/37_asn1_time.t line 14.
#          got: 'Jul 31 09:36:09 2305 GMT'
#     expected: 'May 16 20:39:37 2033 GMT'

#   Failed test 'P_ASN1_UTCTIME_put2string'
#   at t/local/37_asn1_time.t line 15.
#          got: 'Jul 31 09:36:09 2305 GMT'
#     expected: 'May 16 20:39:37 2033 GMT'

#   Failed test 'P_ASN1_TIME_get_isotime'
#   at t/local/37_asn1_time.t line 19.
#          got: '2305-07-31T09:36:09Z'
#     expected: '2033-05-16T20:39:37Z'

We were able to reproduce this without Net-SSLeay and even Perl at all, so it appears to be a Strawberry OpenSSL/GCC problem. Reported upstream as StrawberryPerl/Perl-Dist-Strawberry#15.

chrisnovakovic avatar May 02 '20 02:05 chrisnovakovic