Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisnovakovic opened this issue May 2, 2020 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@chrisnovakovic
Copy link
Collaborator

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.

@h-vn
Copy link
Contributor

h-vn commented Oct 7, 2020

Fixed the title to use correct test file name. Old name was: 36_verify.t fails on 32-bit Strawberry Perl >= 5.30.0.1

@h-vn h-vn changed the title 36_verify.t fails on 32-bit Strawberry Perl >= 5.30.0.1 37_asn1_time.t fails on 32-bit Strawberry Perl >= 5.30.0.1 Oct 7, 2020
@chrisnovakovic chrisnovakovic changed the title 37_asn1_time.t fails on 32-bit Strawberry Perl >= 5.30.0.1 37_asn1_time.t fails on 32-bit Strawberry Perl 5.30.0.1 - 5.30.2.1 Oct 16, 2021
@chrisnovakovic
Copy link
Collaborator Author

Fixed the title again now that we know a definitive range of Strawberry Perl versions affected by this bug. Support has been withdrawn for these versions, but I'll leave this open until we implement an appropriate check in Makefile.PL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants