How to crash CryptoNote-based coin daemon...

Words
78
Reading
1 min
Listen
Play
7y

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.

How to crash CryptoNote-based coin daemon... | Ecency