diff options
| author | Matt Corallo <[email protected]> | 2015-06-06 11:45:35 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-02 17:32:27 -0500 |
| commit | 7ea0ad539ff83f09cf617a9fb7c4d774e45efdc0 (patch) | |
| tree | 341c591b9f6a281ec39ffa612808c9780b8b12a5 /src/core_read.cpp | |
| parent | Merge #9654: Add jtimon pgp keys for commit sigs and future gitian builds (diff) | |
| download | discoin-7ea0ad539ff83f09cf617a9fb7c4d774e45efdc0.tar.xz discoin-7ea0ad539ff83f09cf617a9fb7c4d774e45efdc0.zip | |
Fail in DecodeHexTx if there is extra data at the end
Diffstat (limited to 'src/core_read.cpp')
| -rw-r--r-- | src/core_read.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp index a5f232c22..a8d667e3b 100644 --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -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; |