1. 24 Aug, 2018 2 commits
  2. 19 Aug, 2018 3 commits
  3. 17 Aug, 2018 2 commits
  4. 16 Aug, 2018 5 commits
  5. 14 Aug, 2018 7 commits
  6. 09 Aug, 2018 4 commits
  7. 06 Aug, 2018 8 commits
  8. 05 Aug, 2018 7 commits
  9. 04 Aug, 2018 1 commit
    • parse: Do not initialize the content in context to NULL · d1bfe614
      String operations in libgit2 are supposed to never receive `NULL`, e.g.
      they are not `NULL`-save. In the case of `git__linenlen()`, invocation
      with `NULL` leads to undefined behavior.
      
      In a `git_parse_ctx` however, the `content` field used in these
      operations was initialized to `NULL` if the `git_parse_ctx_init()` was
      called with `NULL` for `content` or `0` for `content_len`. For the
      latter case, the initialization function even contained some logic for
      initializing `content` with `NULL`.
      
      This commit mitigates triggering undefined behavior by rewriting the
      logic. Now `content` is always initialized to a non-null buffer. Instead
      of a null buffer, an empty string is used for denoting an empty buffer.
      Julian Ganz committed
  10. 03 Aug, 2018 1 commit