[PATCH] D27729: [libFuzzer] Diff 20 - Update tests to use more general functions instead of posix specific.

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 14:30:22 PST 2016


zturner added inline comments.


================
Comment at: lib/Fuzzer/FuzzerUtilWindows.cpp:181-182
+const char *StrStr(const char* Ref, const char* Patt) {
+  return (const char*) fuzzer::SearchMemory(Ref, ::strlen(Ref), Patt,
+    ::strlen(Patt));
+}
----------------
Windows has `strstr`, it just doesn't have `strcasestr`.  I would implement this one using just `strstr`.


Repository:
  rL LLVM

https://reviews.llvm.org/D27729





More information about the llvm-commits mailing list