Skip to content
Snippets Groups Projects
  1. May 18, 2018
    • Brad King's avatar
      Merge topic 'getline-fixes' · 5357cfc4
      Brad King authored and Kitware Robot's avatar Kitware Robot committed
      
      898dc6b9 SystemTools: Fix GetLineFromStream to avoid libc++ bug on OS X 10.7
      
      Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
      Merge-request: !100
      5357cfc4
    • Peter Wu's avatar
      SystemTools: Fix GetLineFromStream to avoid libc++ bug on OS X 10.7 · 898dc6b9
      Peter Wu authored and Brad King's avatar Brad King committed
      LLVM libc++ as included with Mac OS X 10.7 suffers from an issue where
      the trailing character is discarded when the delimiter (LF) is not found
      within the given buffer size (1024).  The returned length is also 1024
      rather than 1023.
      
      This issue results in truncated reads as observed with CMake 3.11.0 on
      Mac OS X 10.7 and `cmake -E cmake_link_script link.txt`.
      
      Solve this by replacing `istream::getline` by `std::getline` which does
      not trigger the buffering issue.  There is one edge case that I decided
      to leave up to the callers though: a file containing `\0` previously
      resulted in line truncation, but is now included in the result.
      
      Tested with Mac OS X 10.7 and 10.11:
      
          -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_CXX_FLAGS=-stdlib=libc++
      
      and `./kwsysTestsCxx testSystemTools`.
      
      Issue: cmake/cmake#15039
      898dc6b9
  2. May 15, 2018
  3. May 12, 2018
  4. May 11, 2018
  5. May 09, 2018
  6. Apr 24, 2018
  7. Apr 23, 2018
  8. Apr 19, 2018
  9. Apr 12, 2018
  10. Apr 11, 2018
  11. Mar 29, 2018
  12. Mar 28, 2018
  13. Mar 09, 2018
  14. Mar 08, 2018
  15. Mar 07, 2018
  16. Mar 06, 2018
  17. Feb 22, 2018
  18. Feb 21, 2018
  19. Feb 20, 2018
  20. Feb 01, 2018
  21. Jan 31, 2018
  22. Jan 23, 2018
  23. Jan 19, 2018
Loading