Home » File Formats » File_Bittorrent » Bug #3532
Bencode - encode and decode - wrong file size (length over 2GiB)
Details
| 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) |
Comments
[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.