solidity-stringutils icon indicating copy to clipboard operation
solidity-stringutils copied to clipboard

Fix for crash bug in memcpy

Open jj0b opened this issue 3 years ago • 1 comments

If toString is run on an exactly 32 character slice, memcpy will crash. It took me more hours than I care to admit to find and fix this. Hope this can be merged or at least that this PR will serve as a warning to anyone else who may run into this. :)

jj0b avatar Dec 10 '21 04:12 jj0b

@jj0b can you add a test that demonstrates the bug?

RyanRHall avatar Feb 04 '22 15:02 RyanRHall