1. 19 Oct, 2018 1 commit
    • util: fix out of bounds read in error message · ea19efc1
      When an integer that is parsed with `git__strntol32` is too big to fit
      into an int32, we will generate an error message that includes the
      actual string that failed to parse. This does not acknowledge the fact
      that the string may either not be NUL terminated or alternative include
      additional characters after the number that is to be parsed. We may thus
      end up printing characters into the buffer that aren't the number or,
      worse, read out of bounds.
      
      Fix the issue by utilizing the `endptr` that was set by
      `git__strntol64`. This pointer is guaranteed to be set to the first
      character following the number, and we can thus use it to compute the
      width of the number that shall be printed. Create a test to verify that
      we correctly truncate the number.
      Patrick Steinhardt committed
  2. 18 Oct, 2018 3 commits
  3. 29 Jun, 2016 1 commit
  4. 14 Nov, 2013 1 commit
  5. 25 Jan, 2012 1 commit
  6. 07 Oct, 2011 1 commit
    • tests-clay: update clay · 681008c7
      The clay script didn't match the latest version from upstream.
      Additionaly, add core/strtol.c to complete porting the core tests to
      clay.
      
      Signed-off-by: schu <schu-github@schulog.org>
      schu committed