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.
Paths
| Differential D83689
[Support] Fix Windows directory_iterator_construct out of bounds ClosedPublic Authored by andrewng on Jul 13 2020, 10:04 AM.
Details Summary Fix incorrect use of the size of Path when accessing PathUTF16, as the Thanks to Ding Fei (danix800) for the code fix, see
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 14 2020, 2:39 AM Closed by commit rGf6eb5daa1636: [Support] Fix Windows directory_iterator_construct out of bounds (authored by andrewng). · Explain WhyJul 15 2020, 2:19 AM This revision was automatically updated to reflect the committed changes. Comment Actions This is actually bug reported on 07 of Jun: https://bugs.llvm.org/show_bug.cgi?id=46236 @andrewng Please mark that completed.
Revision Contents
Diff 277468 llvm/lib/Support/Windows/Path.inc
llvm/unittests/Support/Path.cpp
|