[PATCH] D47837: [libFuzzer] When printing NEW_FUNC, use 1-base indexing.
Alex Gaynor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 6 10:35:03 PDT 2018
alex created this revision.
alex added a reviewer: kcc.
Herald added subscribers: Sanitizers, llvm-commits, delcypher.
Otherwise we print things like [0/1] which is visually confusing.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D47837
Files:
lib/fuzzer/FuzzerTracePC.cpp
Index: lib/fuzzer/FuzzerTracePC.cpp
===================================================================
--- lib/fuzzer/FuzzerTracePC.cpp
+++ lib/fuzzer/FuzzerTracePC.cpp
@@ -184,7 +184,7 @@
}
for (size_t i = 0, N = Min(CoveredFuncs.size(), NumPrintNewFuncs); i < N; i++) {
- Printf("\tNEW_FUNC[%zd/%zd]: ", i, CoveredFuncs.size());
+ Printf("\tNEW_FUNC[%zd/%zd]: ", i + 1, CoveredFuncs.size());
PrintPC("%p %F %L\n", "%p\n", CoveredFuncs[i] + 1);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47837.150164.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180606/4ae53f11/attachment.bin>
More information about the llvm-commits
mailing list