1. 03 Nov, 2016 2 commits
    • commit: always initialize commit message · 821042b6
      When parsing a commit, we will treat all bytes left after parsing
      the headers as the commit message. When no bytes are left, we
      leave the commit's message uninitialized. While uncommon to have
      a commit without message, this is the right behavior as Git
      unfortunately allows for empty commit messages.
      
      Given that this scenario is so uncommon, most programs acting on
      the commit message will never check if the message is actually
      set, which may lead to errors. To work around the error and not
      lay the burden of checking for empty commit messages to the
      developer, initialize the commit message with an empty string
      when no commit message is given.
      Patrick Steinhardt committed
    • tree: validate filename and OID length when parsing object · dfc2c713
      When parsing tree entries from raw object data, we do not verify
      that the tree entry actually has a filename as well as a valid
      object ID. Fix this by asserting that the filename length is
      non-zero as well as asserting that there are at least
      `GIT_OID_RAWSZ` bytes left when parsing the OID.
      Patrick Steinhardt committed
  2. 02 Oct, 2016 5 commits
  3. 01 Oct, 2016 33 commits