How to crash CryptoNote-based coin daemon...

in cryptonote •  5 years ago 

I got several reports about daemon of my coin crashing on Linux... After hours of investigating the root cause, I found out that two of the transactions the daemon was receiving from network had mixin of over 1700. This caused buffer overflow in transaction validation, because the code didn't check number of outputs before trying to iterate through them.

As a fix, I did limit number of outputs per input to 50 and that stopped the daemon from crashing.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

oe22bo.png

Get lost chump... That's what the mute button is for.
Loser...