P3KI / bendy

A rust library for encoding and decoding bencode with enforced cannonicalization rules.
BSD 3-Clause "New" or "Revised" License
74 stars 14 forks source link

Change MAX_DEPTH of value::Value to 0 #38

Open thequux opened 4 years ago

thequux commented 4 years ago

Per the documentation in encoding.rs, MAX_DEPTH of a variable-sized object should be set to 0 and then explicitly padded when creating the decoder.

This will fix #37 properly, but is a breaking change.