Permalink
Commits on Jul 25, 2017
  1. [tests] Fix incorrect memory_cleanse(…) call in crypto_tests.cpp

    chKey and chIV are pointers, not arrays :-)
    
    Probably the result of copy-pasting of old code which was
    operating on arrays instead of pointers.
    practicalswift committed Jul 22, 2017
Commits on Jul 18, 2017
  1. Avoid redundant redeclaration of GetWarnings(const string&)

    std::string GetWarnings(const std::string& strFor) is declared in
    warnings.h and defined in warnings.cpp.
    practicalswift committed Jul 18, 2017
  2. Fix typo: "conditon" → "condition"

    Typo introduced in commit 439c4e8.
    practicalswift committed Jul 18, 2017
  3. Remove unused variable int64_t nEnd

    Last use of nEnd removed in commit 1fc8c3d.
    practicalswift committed Jul 18, 2017
Commits on Jul 16, 2017
  1. Fix incorrect Doxygen tag (@ince @since). Make Doxygen parameter na…

    …mes match actual parameter names.
    practicalswift committed Jul 16, 2017
Commits on Jul 15, 2017
  1. Fix typos

    practicalswift committed Jul 15, 2017
  2. Avoid static analyzer warnings regarding uninitialized arguments

    Avoid static analyzer warnings regarding "Function call argument
    is a pointer to uninitialized value" in cases where we are
    intentionally using such arguments.
    
    This is achieved by using ...
    
    `f(b.begin(), b.end())` (`std::array<char, N>`)
    
    ... instead of ...
    
    `f(b, b + N)` (`char b[N]`)
    
    Rationale:
    * Reduce false positives by guiding static analyzers regarding our
      intentions.
    
    Before this commit:
    
    ```
    $ clang-tidy-3.5 -checks=* src/bench/base58.cpp
    bench/base58.cpp:23:9: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage]
            EncodeBase58(b, b + 32);
            ^
    $ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp
    bench/verify_script.cpp:59:5: warning: Function call argument is a pointer to uninitialized value [clang-analyzer-core.CallAndMessage]
        key.Set(vchKey, vchKey + 32, false);
        ^
    $
    ```
    
    After this commit:
    
    ```
    $ clang-tidy-3.5 -checks=* src/bench/base58.cpp
    $ clang-tidy-3.5 -checks=* src/bench/verify_script.cpp
    $
    ```
    practicalswift committed Jul 3, 2017
Commits on Jul 9, 2017
Commits on Jul 2, 2017
  1. Avoid printing incorrect block indexing time due to uninitialized var…

    …iable
    
    Fixes:
    
    init.cpp: In function ‘bool AppInitMain(boost::thread_group&, CScheduler&)’:
    init.cpp:1499:56: warning: ‘nStart’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart);
                                                            ^
    practicalswift committed Jul 2, 2017
Commits on Jun 28, 2017
  1. Use the override specifier (C++11) where we expect to be overriding t…

    …he virtual function of a base class
    practicalswift committed Jun 20, 2017
Commits on Jun 27, 2017
Commits on Jun 21, 2017
  1. Remove obsolete _MSC_VER check

    * MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005)
    * C++11 is supported since MSVC 2010
    * Compiling without C++11 support is no longer possible
    practicalswift committed Jun 21, 2017
Commits on Jun 15, 2017
Commits on Jun 14, 2017
  1. Net: Fix resource leak in ReadBinaryFile(...)

    Introduced in 0b6f40d via PR #10408.
    practicalswift committed Jun 14, 2017
Commits on Jun 12, 2017
Commits on Jun 11, 2017
Commits on Jun 9, 2017
Commits on Jun 8, 2017
Commits on Jun 7, 2017
Commits on Jun 6, 2017
  1. [trivial] Fix typo: "occurrences" (misspelled as "occurrances")

    Typo introduced in 0003911:
    
    $ git blame src/coins.cpp | grep occurrances
    0003911 (2017-04-25 11:29:29 -0700  89)         // deal with the pre-BIP30 occurrances of duplicate coinbase transactions.
    practicalswift committed Jun 6, 2017
Commits on Jun 4, 2017
  1. Limit variable scope

    practicalswift committed Jun 4, 2017
Commits on Jun 3, 2017
Commits on May 31, 2017