lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> On Saturday, January 11, 2014, Moritz Wilhelmy wrote:
>> Hello,
>> 
>> I'm pleased to announce the release of bencode-2.1.0, which fixes a
>> short string decoding bug where an error would not be detected with
>> strings that were one character short, i.e. "4:abc" returns nil and an
>> error message now, rather than "abc".
>> 
>> Thanks to Jorge "xopxe" Visca for finding and fixing this bug.
>> 
>> There is an updated rockspeck here, please add it to luarocks:
>> https://bitbucket.org/wilhelmy/lua-bencode/raw/7d922d6926c5ae18e562dce53adfab4be5daba58/bencode.rockspec
>> 
>> Distribution ZIP archive and tarball can be found here:
>> https://bitbucket.org/wilhelmy/lua-bencode/downloads/lua-bencode-2.1.0.zip
>> https://bitbucket.org/wilhelmy/lua-bencode/downloads/lua-bencode-2.1.0.tar.gz
>> 
>> as well as my own site:
>> http://ftp.barfooze.de/pub/lua-bencode/lua-bencode-2.1.0.zip
>> http://ftp.barfooze.de/pub/lua-bencode/lua-bencode-2.1.0.tar.gz
>> 
>> And should have the following SHA-512 checksums:
>> 55ceb1ff218839b52367339633efe040a186dd1fc432e4ce5b6f0fff7c329aae  lua-bencode-2.1.0.zip
>> 4624f33ff026bc62990a323ee4953e42d68430c38a1a4726c9cfd77c085b1422  lua-bencode-2.1.0.tar.gz
>> 
>> 
>> Best regards,
>> 
>> Moritz
> 
> Could you please take a second to describe bencode? Thanks!
> 
> -Andrew 


Wikipedia does a great job of explaining the bencode encoding scheme:

http://en.wikipedia.org/wiki/Bencode

The system is primarily used by the BitTorrent protocol for encoding the information in torrent files.

~pmd~