[bitcoin/bitcoin] bitcoin-tx: Stricter check for valid integers (#13603)

Empact commented on this pull request.

> @@ -212,7 +221,7 @@ static void MutateTxLocktime(CMutableTransaction& tx, const std::string& cmdVal)
static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInIdx)
{
// parse requested index
— int inIdx = atoi(strInIdx);
+ const int64_t inIdx = ParseInteger(strInIdx);
if (inIdx < 0 || inIdx >= (int)tx.vin.size()) {

Update cast

Добавить комментарий