diff options
| author | Ricardo M. Correia <[email protected]> | 2012-05-14 02:50:01 +0200 |
|---|---|---|
| committer | Ricardo M. Correia <[email protected]> | 2012-05-14 02:53:27 +0200 |
| commit | fe78c9ae8b4c9701cf6d84a0572a2d503c6ee424 (patch) | |
| tree | 1118f2b2fd914cb63cbc82b3951c52e3abc0cdbb /src/netbase.cpp | |
| parent | Make CNetAddr::GetHash() return an unsigned val. (diff) | |
| download | discoin-fe78c9ae8b4c9701cf6d84a0572a2d503c6ee424.tar.xz discoin-fe78c9ae8b4c9701cf6d84a0572a2d503c6ee424.zip | |
Don't overflow signed ints in CBigNum::setint64().
CBigNum::setint64() does 'n <<= 8', where n is of type "long long".
This leads to shifting onto and past the sign bit, which is undefined
behavior in C++11 and can cause problems in the future.
Diffstat (limited to 'src/netbase.cpp')
0 files changed, 0 insertions, 0 deletions