Skip to content

Commit

Permalink
Fail in DecodeHexTx if there is extra data at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Feb 2, 2017
1 parent 1c2edd9 commit 7ea0ad5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core_read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ bool DecodeHexTx(CMutableTransaction& tx, const std::string& strHexTx, bool fTry
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
try {
ssData >> tx;
if (!ssData.empty())
return false;
}
catch (const std::exception&) {
return false;
Expand Down

0 comments on commit 7ea0ad5

Please sign in to comment.