[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 = (int)tx.vin.size()) {

Update cast

This post was last modified on July 6, 2018, 11:01 pm