diff options
| author | jeffro256 <jeffro256@tutanota.com> | 2025-07-11 11:19:40 -0500 |
|---|---|---|
| committer | jeffro256 <jeffro256@tutanota.com> | 2025-07-11 11:37:08 -0500 |
| commit | 1d3d30c5076200a308de4764491ace1d8a4d52af (patch) | |
| tree | 8e3e028d0cdbbbc4318008d992bf0af1d5492556 /src/cryptonote_core/blockchain.cpp | |
| parent | 3e218c2021a8346e8adb87baaadfb7261ae1477a (diff) | |
| download | monzero-core-1d3d30c5076200a308de4764491ace1d8a4d52af.tar.gz monzero-core-1d3d30c5076200a308de4764491ace1d8a4d52af.tar.xz monzero-core-1d3d30c5076200a308de4764491ace1d8a4d52af.zip | |
crypto: check+throw for Cryptonight v1 invalid input
If `crypto::cn_slow_hash()` is called with `variant=1` and an input length of less thab 43 bytes, it triggers a program exit.
This checks first and throws an exception instead.
Thank you to ADA Logics and the MAGIC Monero Fund for reporting this!
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
0 files changed, 0 insertions, 0 deletions
