[all-commits] [llvm/llvm-project] f6eb5d: [Support] Fix Windows directory_iterator_construct...

Andrew Ng via All-commits all-commits at lists.llvm.org
Wed Jul 15 02:19:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f6eb5daa16368fb90d5a59b14a72bfd8ddbcd2a0
      https://github.com/llvm/llvm-project/commit/f6eb5daa16368fb90d5a59b14a72bfd8ddbcd2a0
  Author: Andrew Ng <andrew.ng at sony.com>
  Date:   2020-07-15 (Wed, 15 Jul 2020)

  Changed paths:
    M llvm/lib/Support/Windows/Path.inc
    M llvm/unittests/Support/Path.cpp

  Log Message:
  -----------
  [Support] Fix Windows directory_iterator_construct out of bounds

Fix incorrect use of the size of Path when accessing PathUTF16, as the
UTF-16 path can be shorter. Added unit test for coverage of this test
case.

Thanks to Ding Fei (danix800) for the code fix, see
https://reviews.llvm.org/D83321.

Differential Revision: https://reviews.llvm.org/D83689




More information about the All-commits mailing list