diff options
| author | lucash-dev <[email protected]> | 2018-11-10 09:11:22 -0800 |
|---|---|---|
| committer | lucash-dev <[email protected]> | 2019-06-02 10:25:03 -0700 |
| commit | 38bfca6bb2ad68719415e9c54a981441052da072 (patch) | |
| tree | fb2686c0635b1e4db76eb779df0fd2800d0a7c53 /src/net_processing.cpp | |
| parent | Merge #16086: contrib: use newer config.guess & config.sub in install_db4.sh (diff) | |
| download | discoin-38bfca6bb2ad68719415e9c54a981441052da072.tar.xz discoin-38bfca6bb2ad68719415e9c54a981441052da072.zip | |
Added comments referencing multiple CVEs in tests and production code.
This commit adds comments referencing multiple CVEs both in production and test code.
CVEs covered in this commit:
CVE-2010-5137
CVE-2010-5139
CVE-2010-5141
CVE-2012-1909
CVE-2012-2459
CVE-2012-3789
CVE-2018-17144
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index a3b865a69..5c66c4022 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2513,7 +2513,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr } AddOrphanTx(ptx, pfrom->GetId()); - // DoS prevention: do not allow mapOrphanTransactions to grow unbounded + // DoS prevention: do not allow mapOrphanTransactions to grow unbounded (see CVE-2012-3789) unsigned int nMaxOrphanTx = (unsigned int)std::max((int64_t)0, gArgs.GetArg("-maxorphantx", DEFAULT_MAX_ORPHAN_TRANSACTIONS)); unsigned int nEvicted = LimitOrphanTxSize(nMaxOrphanTx); if (nEvicted > 0) { |