diff options
| author | Gavin Andresen <[email protected]> | 2011-10-01 12:00:24 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-10-01 12:00:24 -0700 |
| commit | 1ff3583e41b0cdb0ee902028b4a37aef41a6f8ba (patch) | |
| tree | a64d3872b547c6f722b893267bc3989d13c57c0d /src/util.cpp | |
| parent | Merge pull request #476 from forrestv/getmemorypool (diff) | |
| parent | remove possibility of 63 bit overflow in ParseMoney (diff) | |
| download | discoin-1ff3583e41b0cdb0ee902028b4a37aef41a6f8ba.tar.xz discoin-1ff3583e41b0cdb0ee902028b4a37aef41a6f8ba.zip | |
Merge pull request #543 from laanwj/utiltests
Remove possibility of 63 bit overflow in ParseMoney
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index fb648a972..02e2d2149 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -387,7 +387,7 @@ bool ParseMoney(const char* pszIn, int64& nRet) for (; *p; p++) if (!isspace(*p)) return false; - if (strWhole.size() > 14) + if (strWhole.size() > 10) // guard against 63 bit overflow return false; if (nUnits < 0 || nUnits > COIN) return false; |