Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.0

Bug #3532 Bencode - encode and decode - wrong file size (length over 2GiB)
Submitted: 2005-02-20 14:56 UTC
From: pepsiblue555 at hotmail dot com Assigned: tacker
Status: Closed Package: File_Bittorrent
PHP Version: 4.3.10 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2005-02-20 14:56 UTC] pepsiblue555 at hotmail dot com
Description: ------------ Since the package Bencode use intval and %d sprintf, this will generate a wrong data for length info. of a file that has size larger than 2GB. (Integer limitation platform dependence) So, using doubleval and %.0f sprintf might work,but may be you have a better idea.

Comments

 [2005-02-21 18:35 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-02-22 15:03 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!