[PATCH] D27579: [libFuzzer] Diff 19 - Automatically link with Windows library.

Marcos Pividori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 03:59:57 PST 2016


mpividori updated this revision to Diff 80838.
mpividori added a comment.

Hi, I implemented it from scratch. I tested with this cases and it works fine:

  DirName("\\?\D:\SomeFile.txt") == "\\?\D:\"
  DirName("\\?\D:\SomeDir\SomeFile.txt") == "\\?\D:\SomeDir"
  DirName("\\?\UNC\Server\Share\") == "\\?\UNC\Server\Share\"
  DirName("\\?\UNC\Server\Share\SomeFile.txt") == "\\?\UNC\Server\Share\"
  DirName("SomeFile.txt") == "."
  DirName("SomeDir\SomeFile.txt") == ".\SomeDir"
  DirName("C:") == "C:"
  DirName("C:SomeFile.txt") == "C:"
  DirName("C:SomeDir\SomeFile.txt") == "C:SomeDir"
  DirName("C:\") == "C:\"
  DirName("C:\SomeFile.txt") == "C:\"
  DirName("C:\SomeDir\SomeFile.txt") == "C:\SomeDir"
  DirName("\") == "\"
  DirName("\SomeFile.txt") == "\"
  DirName("\SomeDir\SomeFile.txt") == "\SomeDir"
  DirName("\\Server\Share\") == "\\Server\Share\"
  DirName("\\Server\Share\SomeFile.txt") == "\\Server\Share\"


Repository:
  rL LLVM

https://reviews.llvm.org/D27579

Files:
  lib/Fuzzer/FuzzerIOWindows.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27579.80838.patch
Type: text/x-patch
Size: 4446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161209/f500761d/attachment-0001.bin>


More information about the llvm-commits mailing list