Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

xrb_uint256_to_string does not null-terminate the address string #290

Closed
gkastel opened this issue Dec 27, 2017 · 3 comments
Closed

xrb_uint256_to_string does not null-terminate the address string #290

gkastel opened this issue Dec 27, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@gkastel
Copy link

gkastel commented Dec 27, 2017

https://github.com/clemahieu/raiblocks/blob/0f06b03a1c42655f3217b1a8f2936320a7b0cf67/rai/lib/interface.cpp#L21

@clemahieu
Copy link
Contributor

The idea with this was that someone could put this number in to the middle of a string without having the null character clobber something.

// Convert public/private key bytes 'source' to a 64 byte not-null-terminated hex string 'destination'
void xrb_uint256_to_string (const xrb_uint256 source, char * destination);

@gkastel
Copy link
Author

gkastel commented Dec 27, 2017

@rkeene rkeene added this to the V16.0 milestone Aug 23, 2018
@rkeene rkeene self-assigned this Aug 23, 2018
@rkeene rkeene added the bug label Aug 24, 2018
@rkeene rkeene modified the milestones: V16.0, V17.0 Aug 29, 2018
@rkeene rkeene modified the milestones: V17.0, V18.0 Oct 23, 2018
@rkeene
Copy link
Contributor

rkeene commented Oct 23, 2018

I don't think we're going to reach a decision on this in time for V17.0, moving to the next release which we plan to use for cleanup and can decide how best to handle this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants