1. 11 Apr, 2018 5 commits
  2. 06 Apr, 2018 4 commits
  3. 05 Apr, 2018 2 commits
  4. 03 Apr, 2018 4 commits
  5. 02 Apr, 2018 1 commit
  6. 30 Mar, 2018 1 commit
  7. 29 Mar, 2018 4 commits
  8. 28 Mar, 2018 3 commits
  9. 27 Mar, 2018 12 commits
  10. 26 Mar, 2018 2 commits
  11. 23 Mar, 2018 2 commits
    • Merge pull request #4594 from pks-t/pks/mempack-assert · 6311e886
      odb: fix writing to fake write streams
      Edward Thomson committed
    • odb: fix writing to fake write streams · a52b4c51
      In commit 7ec7aa4a (odb: assert on logic errors when writing objects,
      2018-02-01), the check for whether we are trying to overflowing the fake
      stream buffer was changed from returning an error to raising an assert.
      The conversion forgot though that the logic around `assert`s are
      basically inverted. Previously, if the statement
      
          stream->written + len > steram->size
      
      evaluated to true, we would return a `-1`. Now we are asserting that
      this statement is true, and in case it is not we will raise an error. So
      the conversion to the `assert` in fact changed the behaviour to the
      complete opposite intention.
      
      Fix the assert by inverting its condition again and add a regression
      test.
      Patrick Steinhardt committed