Skip to content
Snippets Groups Projects
  1. Nov 01, 2022
  2. Oct 27, 2022
  3. Oct 26, 2022
  4. Oct 25, 2022
  5. Oct 24, 2022
  6. Oct 21, 2022
  7. Oct 20, 2022
    • Brad King's avatar
      Merge branch 'filesystem-path-c++03-abi' into release-3.24 · 47063db5
      Brad King authored
      Merge-request: !7813
      47063db5
    • Brad King's avatar
      Merge branch 'filesystem-path-c++03-abi' into release-3.23 · 199b3e58
      Brad King authored
      Merge-request: !7813
      199b3e58
    • Brad King's avatar
      cm/filesystem: Fix crash with pre-C++11 std::string GNU ABI in C++17 · ee9805cc
      Brad King authored
      The `remove_filename` and `replace_extension` methods compute an offset
      between the whole path in a `std::string` and a part of a path in a
      `std::string_view`.  This is done by subtracting their `.data()`
      pointers.  However, C++17 adds a non-const `.data()` through which
      modification of the string is allowed.  This means the copy-on-write
      implementation used by the pre-C++11 std::string GNU ABI must reallocate
      if the string has been copied.  Our subtraction then computes an offset
      between two different allocations, which is undefined behavior.
      
      The workaround in commit b3ca4f9a (cm/filesystem: Work around crash
      when compiled for CYGWIN/MSYS runtime, 2021-04-22, v3.21.0-rc1~271^2~2)
      avoided the problem by calling the non-const `.data()` to reallocate
      before constructing the `string_view`.  Instead, explicitly call the
      const `.data()` method on the string, which does not reallocate.
      
      Fixes: #22090, #23328
      ee9805cc
    • Brad King's avatar
      Merge branch 'test-git-protocol-file' into release-3.24 · 81ebea44
      Brad King authored
      Merge-request: !7812
      81ebea44
    • Brad King's avatar
      Tests: Explicitly allow usage of git file-based protocol in test cases · 79ce0f43
      Brad King authored
      Due to CVE-2022-39253, Git 2.30.6 sets `protocol.file.allow=user` by
      default.  The change has also been backported to other Git versions by
      distros.  This breaks some of our test cases that use the file-based
      protocol locally to simulate real workflows without requiring network
      access.  In these cases the file protocol is safe, so explicitly enable
      it in the tests.
      79ce0f43
  8. Oct 19, 2022
  9. Oct 18, 2022
  10. Oct 17, 2022
  11. Oct 14, 2022
  12. Oct 11, 2022
Loading