1. 30 May, 2018 3 commits
    • submodule: refactor loading submodule names · cf5030a3
      The function `load_submodule_names` was always being called with a
      newly allocated string map, which was then getting filled by the
      function. Move the string map allocation into `load_submodule_names`,
      instead, and pass the whole map back to the caller in case no error
      occurs. This change helps to avoid misuse by handing in pre-populated
      maps.
      Patrick Steinhardt committed
    • submodule: detect duplicated submodule paths · b2a389c8
      When loading submodule names, we build a map of submodule paths and
      their respective names. While looping over the configuration keys,
      we do not check though whether a submodule path was seen already. This
      leads to a memory leak in case we have multiple submodules with the same
      path, as we just overwrite the old value in the map in that case.
      
      Fix the error by verifying that the path to be added is not yet part of
      the string map. Git does not allow to have multiple submodules for a
      path anyway, so we now do the same and detect this duplication,
      reporting it to the user.
      Patrick Steinhardt committed
    • Merge pull request #4656 from tiennou/fix/mbedtls-no-pkgconfig · 36ae5c93
      mbedtls: don't require mbedtls from our pkgconfig file
      Patrick Steinhardt committed
  2. 29 May, 2018 2 commits
  3. 25 May, 2018 2 commits
  4. 24 May, 2018 4 commits
  5. 23 May, 2018 4 commits
  6. 22 May, 2018 3 commits
  7. 21 May, 2018 1 commit
  8. 18 May, 2018 5 commits
  9. 14 May, 2018 1 commit
  10. 09 May, 2018 7 commits
  11. 07 May, 2018 5 commits
  12. 05 May, 2018 1 commit
  13. 04 May, 2018 2 commits
    • Merge pull request #4380 from cjhoward92/examples/ls-files · 0c6f631c
      examples: ls-files: add ls-files to list paths in the index
      Patrick Steinhardt committed
    • tests: iterator::workdir: fix GCC warning · 1bf57b5a
      Since GCC 8.1, the compiler performs some bounds checking when
      copying static data into arrays with a known size. In one test,
      we print a format string of "%s/sub%02d" into a buffer of 64
      bytes. The input buffer for the first "%s" is bounded to at most
      63 characters, plus four bytes for the static string "/sub" plus
      two more bytes for "%02d". Thus, our target buffer needs to be at
      least 70 bytes in size, including the NUL byte. There seems to be
      a bug in the analysis, though, because GCC will not account for
      the limiting "%02" prefix, treating it as requiring the same
      count of bytes as a "%d".
      
      Thus, we end up at 79 bytes that are required to fix the
      warning. To make it look nicer and less special, we just round
      the buffer size up to 80 bytes.
      Patrick Steinhardt committed