diff --git a/src/cc/cc_command_handler_buy_land.cpp b/src/cc/cc_command_handler_buy_land.cpp index 521a53f94..f7261a446 100644 --- a/src/cc/cc_command_handler_buy_land.cpp +++ b/src/cc/cc_command_handler_buy_land.cpp @@ -58,6 +58,7 @@ bool cc_command_handler_buy_land::check(const cryptonote::BlockchainDB &db, cons MERROR("buy_land size below minimum"); return false; } + static_assert(MIN_BUY_SIDE_SIZE > 0, "The test below allows building to the max limit, which will break some uint32_t based loops"); if (buy_land.x < MIN_BUY_SIDE_SIZE || buy_land.x > std::numeric_limits<uint32_t>::max() - buy_land.wm1 - MIN_BUY_SIDE_SIZE) { MERROR("buy_land area too close to edge");