Shallot icon indicating copy to clipboard operation
Shallot copied to clipboard

There was a off-by-one in buffer for the onion address.

Open Freaken opened this issue 11 years ago • 2 comments

The base32_onion function writes BASE32_ONIONLEN+1 bytes to the buffer, however the onion buffer only contains BASE32_ONIONLEN bytes.

Freaken avatar Feb 08 '13 00:02 Freaken

this needs to be merged, get lots of false positives without this patch

nikcub avatar Nov 18 '14 16:11 nikcub

This bug happens to me as well.

I can verify that base32_onion() indeed needs a buffer with the size of BASE32_ONIONLEN + 1 (see src/print.c: The method will write to but[BASE32_ONIONLEN] in the end).

If you add me to the github collaborators for this repo, I'd love to take a look at this and other pull requests and merge them into this repository.

herzi avatar Jun 05 '15 12:06 herzi