1. 03 May, 2015 1 commit
  2. 02 May, 2015 5 commits
  3. 01 May, 2015 5 commits
  4. 28 Apr, 2015 3 commits
  5. 26 Apr, 2015 2 commits
  6. 25 Apr, 2015 8 commits
  7. 24 Apr, 2015 4 commits
  8. 22 Apr, 2015 3 commits
  9. 21 Apr, 2015 4 commits
  10. 18 Apr, 2015 2 commits
  11. 17 Apr, 2015 2 commits
  12. 16 Apr, 2015 1 commit
    • Philipp A. Hartmann's avatar
      Avoid calling memcpy with NULL pointers · 0c5c1538
      Philipp A. Hartmann authored
      According to the C/C++ standards, calling `memcpy(NULL, NULL, 0)` is
      undefined behaviour. Recent GCC versions may rely on this by optimizing
      NULL pointer checks more aggressively, see [1].
      
      This patch tries to avoid calling std::memcpy with zero elements.
      As a side effect, explicitly return NULL when requesting an empty block
      from MemoryPoolAllocator::Malloc.
      
      This may be related to #301.
      
      [1] https://gcc.gnu.org/gcc-4.9/porting_to.html
      0c5c1538