1. 02 Nov, 2018 1 commit
    • strntol: fix out-of-bounds read when skipping leading spaces · 41863a00
      The `git__strntol` family of functions accepts leading spaces and will
      simply skip them. The skipping will not honor the provided buffer's
      length, though, which may lead it to read outside of the provided
      buffer's bounds if it is not a simple NUL-terminated string.
      Furthermore, if leading space is trimmed, the function will further
      advance the pointer but not update the number of remaining bytes, which
      may also lead to out-of-bounds reads.
      
      Fix the issue by properly paying attention to the buffer length and
      updating it when stripping leading whitespace characters. Add a test
      that verifies that we won't read past the provided buffer length.
      Patrick Steinhardt committed
  2. 31 Oct, 2018 1 commit
  3. 30 Oct, 2018 2 commits
  4. 26 Oct, 2018 6 commits
  5. 25 Oct, 2018 11 commits
  6. 23 Oct, 2018 1 commit
  7. 21 Oct, 2018 12 commits
  8. 20 Oct, 2018 6 commits