aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Revert NACK'd fixes for 0.7.2.Luke Dashjr2012-11-161-1/+1
| | | | | | | | | This reverts commits: - 220de9aafbdb76fa620531fc5c0b01ffa6616d7b Qt: small header changes / fixes - caeafd1bd1b217276005c6bb422136f379d881cf fix some double-spaces in strings - deb9f100a04dbb9c25d6ba320eba4c653a2f5423 fix some double-spaces in strings - 65cee0bbbdea49c08bc84be7824ab004cc19f57e don't use memset() in privacy/security relevant code parts - ff31f1fa10e2062465520ad8a3ff846c23b7a96f don't use memset() in privacy/security relevant code parts
* Merge branch '0.6.x' into 0.7.xLuke Dashjr2012-11-141-1/+1
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/bitcoinrpc.cpp src/crypter.h src/main.cpp src/qt/bitcoin.cpp src/qt/qtipcserver.cpp src/util.cpp
| * Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-11-141-1/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/init.cpp src/main.cpp src/serialize.h
| | * don't use memset() in privacy/security relevant code partsPhilip Kaufmann2012-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As memset() can be optimized out by a compiler it should not be used in privacy/security relevant code parts. OpenSSL provides the safe OPENSSL_cleanse() function in crypto.h, which perfectly does the job of clean and overwrite data. For details see: http://www.viva64.com/en/b/0178/ - change memset() to OPENSSL_cleanse() where appropriate - change a hard-coded number from netbase.cpp into a sizeof()
| * | Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-10-091-2/+8
| |\|
| | * Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-10-091-2/+8
| | |\ | | | | | | | | | | | | | | | | Conflicts: src/qt/transactiondesc.cpp
| | | * Merge branch '0.4.x' into 0.5.xLuke Dashjr2012-10-091-2/+8
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/bitcoinrpc.cpp src/init.cpp
| | | | * Avoid crashes at shutdown due to printf() in global destructors.Gavin Andresen2012-10-091-2/+8
| | | | |
| * | | | Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-08-121-1/+1
| |\| | |
| | * | | Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-08-121-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/unit-tests.txt
| | | * | Merge branch '0.4.x' into 0.5.xLuke Dashjr2012-08-121-1/+1
| | | |\|
| | | | * Bugfix: Correct English grammar regarding "'s"Luke Dashjr2012-08-121-1/+1
| | | | |
| * | | | Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-07-221-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/init.cpp src/util.cpp
| | * | | Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-07-221-3/+3
| | |\| |
| | | * | Merge branch '0.4.x' into 0.5.xLuke Dashjr2012-07-221-3/+3
| | | |\|
| | | | * fix OpenSSL not written as proper noun in some commentsPhilip Kaufmann2012-07-221-3/+3
| | | | |
| | | | * Fix a few typosfanquake2012-07-051-2/+2
| | | | |
| | | | * Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen2012-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | (this fixes a Mac OS X gitian build error for 0.5.x)
| | | * | Fix a few typosfanquake2012-07-051-2/+2
| | | | |
| | | * | Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen2012-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | (this fixes a Mac OS X gitian build error for 0.5.x)
| * | | | Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-07-061-2/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: contrib/debian/patches/1001_use_system_json-spirit.patch src/key.h src/main.cpp src/main.h src/net.cpp
| | * | | Fix a few typosfanquake2012-07-051-2/+2
| | | | |
| * | | | Merge branch '0.6.x' of ↵Gavin Andresen2012-06-191-2/+5
| |\ \ \ \ | | | | | | | | | | | | | | | | | | git://gitorious.org/+bitcoin-stable-developers/bitcoin/bitcoind-stable into 0.6.3
| | * | | | Merge branch '0.6.0.x' into 0.6.xLuke Dashjr2012-06-141-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore src/bitcoinrpc.cpp src/main.cpp src/qt/bitcoingui.cpp src/ui_interface.h src/util.cpp
| | | * | | Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-06-141-0/+3
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/main.h src/net.cpp src/serialize.h
| | | | * | Merge branch '0.4.x' into 0.5.xLuke Dashjr2012-06-141-0/+3
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/release-process.txt src/serialize.h
| | | | | * Serialize access to debug.log streamMichael Hendricks2012-06-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Acquire an exclusive, advisory lock before sending output to debug.log and release it when we're done. This should avoid output from multiple threads being interspersed in the log file. We can't use CRITICAL_SECTION machinery for this because the debug log is written during startup and shutdown when that machinery is not available. (Thanks to Gavin for pointing out the CRITICAL_SECTION problems based on his earlier work in this area)
| | | | | * Update License in File HeadersFordy2012-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
| | | | * | Update License in File HeadersFordy2012-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
| | | * | | Update License in File HeadersFordy2012-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
| | | * | | Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-05-041-1/+1
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/main.cpp src/serialize.h
| | | | * | Merge branch '0.4.x' into 0.5.xLuke Dashjr2012-05-041-1/+1
| | | | |\|
| | | | | * fix compiler warning "suggest parentheses around assignment used as truthPhilip Kaufmann2012-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | value [-Wparentheses]" in util.cpp
| | | | * | Merge branch '0.4.x' into 0.5.xLuke Dashjr2012-04-221-5/+5
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/main.cpp
| | | | | * Fix bugs on 'unsigned char' platforms.Dwayne C. Litzenberger2012-04-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ISO C++, the signedness of 'char' is undefined. On some platforms (e.g. ARM), 'char' is an unsigned type, but some of the code relies on 'char' being signed (as it is on x86). This is indicated by compiler warnings like this: bignum.h: In constructor 'CBigNum::CBigNum(char)': bignum.h:81:59: warning: comparison is always true due to limited range of data type [-Wtype-limits] util.cpp: In function 'bool IsHex(const string&)': util.cpp:427:28: warning: comparison is always false due to limited range of data type [-Wtype-limits] In particular, IsHex erroneously returned true regardless of the input characters, as long as the length of the string was a positive multiple of 2. Note: For testing, it's possible using GCC to force char to be unsigned by adding the -funsigned-char parameter to xCXXFLAGS.
| | | | | * Fix phexdigits[255] is undefined.Dwayne C. Litzenberger2012-04-221-1/+1
| | | | | |
| | | * | | Fix bugs on 'unsigned char' platforms.Dwayne C. Litzenberger2012-04-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ISO C++, the signedness of 'char' is undefined. On some platforms (e.g. ARM), 'char' is an unsigned type, but some of the code relies on 'char' being signed (as it is on x86). This is indicated by compiler warnings like this: bignum.h: In constructor 'CBigNum::CBigNum(char)': bignum.h:81:59: warning: comparison is always true due to limited range of data type [-Wtype-limits] util.cpp: In function 'bool IsHex(const string&)': util.cpp:427:28: warning: comparison is always false due to limited range of data type [-Wtype-limits] In particular, IsHex erroneously returned true regardless of the input characters, as long as the length of the string was a positive multiple of 2. Note: For testing, it's possible using GCC to force char to be unsigned by adding the -funsigned-char parameter to xCXXFLAGS.
| | | * | | Fix phexdigits[255] is undefined.Dwayne C. Litzenberger2012-04-221-1/+1
| | | | | |
| | | * | | Merge branch '0.5.x' into 0.6.0.xLuke Dashjr2012-04-151-3/+14
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/qt/bitcoin.cpp src/qt/bitcoingui.cpp src/qt/guiutil.cpp src/qt/guiutil.h src/qt/sendcoinsdialog.cpp src/qt/sendcoinsdialog.h src/util.cpp
| | | | * | Merge branch '0.4.x' into 0.5.0.xLuke Dashjr2012-04-151-0/+11
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/keystore.h
| | | | | * work around issue in boost::program_options that prevents from compiling in ↵Wladimir J. van der Laan2012-04-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | clang
| | | | * | fix warnings: array subscript is of type 'char' [-Wchar-subscripts]Wladimir J. van der Laan2012-04-151-3/+3
| | | | | |
| | | | * | Merge branch '0.4.x' into 0.5.0.xLuke Dashjr2012-03-031-5/+14
| | | | |\|
| | | | | * Bugfix: Fix possible buffer overflow (#901)Luke Dashjr2012-03-031-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | Upstream commit: 21ae37d (partial)
| | | | | * Bugfix: Check return value of SHGetSpecialFolderPath in MyGetSpecialFolderPathLuke Dashjr2012-03-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Upstream commit: 21ae37d (partial)
| | | | * | Merge branch '0.4.x' into 0.5.0.xLuke Dashjr2012-02-071-1/+1
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/bitcoinrpc.cpp
| | | | | * Update copyrights to 2012 for files modified this yearLuke Dashjr2012-02-071-1/+1
| | | | | |
| | | | * | Merge branch '0.4.x' into 0.5.0.xLuke Dashjr2012-01-031-0/+17
| | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/util.cpp
| | | | | * Fix issue #659, and cleanup wallet/command-line argument handling a bitGavin Andresen2012-01-031-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/init.cpp src/util.cpp
| | | | | * remove possibility of 63 bit overflow in ParseMoneyWladimir J. van der Laan2011-10-011-1/+1
| | | | | |