This is an archive of the discontinued LLVM Phabricator instance.

[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
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.

Diff Detail

Event Timeline

andrewng created this revision.Jul 13 2020, 10:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2020, 10:04 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
sammccall accepted this revision.Jul 14 2020, 2:39 AM
This revision is now accepted and ready to land.Jul 14 2020, 2:39 AM
This revision was automatically updated to reflect the committed changes.

This is actually bug reported on 07 of Jun: https://bugs.llvm.org/show_bug.cgi?id=46236

@andrewng Please mark that completed.