Skip Menu |

This queue is for tickets about the Net-SFTP-Foreign CPAN distribution.

Report information
The Basics
Id: 18888
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: mha [...] hafsjold.dk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.53
Fixed in: (no value)



Subject: Problems with Quad and little-endian on an Intel platform
I have found some problems in the Net::SFTP::Foreign::Buffer version 0.53. line 38: return unpack(Q => substr(${$_[0]}, 0, 8, '')) in sub get_int64 line 72: ${$_[0]} .= pack(Q => $_[1]) in sub put_int64 line 107: return pack(Q => $_[0]) in my %pack Those lines of code only work correctly on if the native byte order is big-endian. I use FreeBSD 5.4 on an Intel platform with Quad and little-endian and here it doesn’t work. Regards Mogens Hafsjold
Subject: Re: [rt.cpan.org #18888] Problems with Quad and little-endian on an Intel platform
Date: Sun, 23 Apr 2006 05:23:47 -0700 (PDT)
To: bug-Net-SFTP-Foreign [...] rt.cpan.org
From: Salvador "Fandiño" <sfandino [...] yahoo.com>
oops, you are right, I have uploaded a new version to CPAN that checks the pack encoding order for quads before using it. Thank you for the report. Cheers, - Salva --- Guest via RT <bug-Net-SFTP-Foreign@rt.cpan.org> wrote: Show quoted text
> > Sun Apr 23 07:29:13 2006: Request 18888 was acted upon. > Transaction: Ticket created by guest > Queue: Net-SFTP-Foreign > Subject: Problems with Quad and little-endian on an Intel > platform > Owner: Nobody > Requestors: mha@hafsjold.dk > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18888 > > > > I have found some problems in the Net::SFTP::Foreign::Buffer > version > 0.53. > > line 38: return unpack(Q => substr(${$_[0]}, 0, 8, '')) in sub > get_int64 > line 72: ${$_[0]} .= pack(Q => $_[1]) in sub put_int64 > line 107: return pack(Q => $_[0]) in my %pack > > Those lines of code only work correctly on if the native byte order > is > big-endian. > > I use FreeBSD 5.4 on an Intel platform with Quad and little-endian > and > here it doesn’t work. > > Regards > Mogens Hafsjold > >
Show quoted text
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com