|
|
@ -340,7 +340,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co |
|
|
|
//
|
|
|
|
//
|
|
|
|
if (!script.GetOp(pc, opcode, vchPushValue)) |
|
|
|
if (!script.GetOp(pc, opcode, vchPushValue)) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
if (vchPushValue.size() > 520) |
|
|
|
if (vchPushValue.size() > MAX_SCRIPT_ELEMENT_SIZE) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
if (opcode > OP_16 && ++nOpCount > 201) |
|
|
|
if (opcode > OP_16 && ++nOpCount > 201) |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -670,7 +670,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co |
|
|
|
valtype& vch2 = stacktop(-1); |
|
|
|
valtype& vch2 = stacktop(-1); |
|
|
|
vch1.insert(vch1.end(), vch2.begin(), vch2.end()); |
|
|
|
vch1.insert(vch1.end(), vch2.begin(), vch2.end()); |
|
|
|
popstack(stack); |
|
|
|
popstack(stack); |
|
|
|
if (stacktop(-1).size() > 520) |
|
|
|
if (stacktop(-1).size() > MAX_SCRIPT_ELEMENT_SIZE) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|