node-bencode icon indicating copy to clipboard operation
node-bencode copied to clipboard

decode.bytes does not adhere to abstract-encoding spec

Open ckcr4lyf opened this issue 1 year ago • 0 comments

What version of this package are you using? Latest

What operating system, Node.js, and npm version? Arch Linux, latest Node LTS (v20)

What happened? decode.bytes returns the length of the entire input data after decoding

What did you expect to happen? It should've returned only the number of bytes consumed.

Are you willing to submit a pull request to fix this bug? Yes

ckcr4lyf avatar Apr 01 '24 08:04 ckcr4lyf