Closed p5pRT closed 6 years ago
The repeat count/repeat counter for unpack is still limited to a signed
32-bit integer in 64-bit builds.
This demonstrates the problem:
C:>\perl5.18\bin\perl.exe -E"$v=chr(255); $v x= 2**27; print unpack
'%32b*'\, $v"
1073741824
C:>\perl5.18\bin\perl.exe -E"$v=chr(255); $v x= 2**28; print unpack
'%32b*'\, $v"
0
On Mon\, 19 Aug 2013 19:28:40 GMT\, browseruk@inbox.com wrote:
Subject: Another 32-bit residual in 64-bit perl 5.18 Message-Id: \5\.10\.1\_10680\_1376940251@​PB\-IM2525\-AIO Reply-To: BrowserUk@xoxy.net To: perlbug@perl.org
This is a bug report for perl from BrowserUk@xoxy.net\, generated with the help of perlbug 1.39 running under perl 5.10.1.
----------------------------------------------------------------- [Please describe your issue here]
The repeat count/repeat counter for unpack is still limited to a signed 32-bit integer in 64-bit builds.
This demonstrates the problem:
C:>\perl5.18\bin\perl.exe -E"$v=chr(255); $v x= 2**27; print unpack '%32b*'\, $v" 1073741824
C:>\perl5.18\bin\perl.exe -E"$v=chr(255); $v x= 2**28; print unpack '%32b*'\, $v" 0
Persists in perl-5.24.0:
##### $ perl -E '$v=chr(255); $v x= 2**27; say unpack "%32b*"\, $v' 1073741824
$ perl -E '$v=chr(255); $v x= 2**28; say unpack "%32b*"\, $v' 0 #####
-- James E Keenan (jkeenan@cpan.org)
The RT System itself - Status changed from 'new' to 'open'
Fixed in commit e1b825c19be2a160b0a3b633eb68e8d61887d21e.
-zefram
@xsawyerx - Status changed from 'open' to 'pending release'
Thank you for filing this report. You have helped make Perl better.
With the release yesterday of Perl 5.28.0\, this and 185 other issues have been resolved.
Perl 5.28.0 may be downloaded via: https://metacpan.org/release/XSAWYERX/perl-5.28.0
If you find that the problem persists\, feel free to reopen this ticket.
@khwilliamson - Status changed from 'pending release' to 'resolved'
Migrated from rt.perl.org#119367 (status was 'resolved')
Searchable as RT119367$