projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5365532
)
[libFuzzer] avoid build warnings in non-assert build (useful warning in this case)
author
Kostya Serebryany
<kcc@google.com>
Wed, 5 Aug 2015 23:44:42 +0000
(23:44 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Wed, 5 Aug 2015 23:44:42 +0000
(23:44 +0000)
llvm-svn: 244177
llvm/lib/Fuzzer/FuzzerTraceState.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Fuzzer/FuzzerTraceState.cpp
b/llvm/lib/Fuzzer/FuzzerTraceState.cpp
index
c6f7c9e
..
1cf89eb
100644
(file)
--- a/
llvm/lib/Fuzzer/FuzzerTraceState.cpp
+++ b/
llvm/lib/Fuzzer/FuzzerTraceState.cpp
@@
-419,7
+419,10
@@
void Fuzzer::InitializeTraceState() {
for (size_t i = 0; i < static_cast<size_t>(Options.MaxLen); i++) {
dfsan_label L = dfsan_create_label("input", (void*)(i + 1));
// We assume that no one else has called dfsan_create_label before.
- assert(L == i + 1);
+ if (L != i + 1) {
+ Printf("DFSan labels are not starting from 1, exiting\n");
+ exit(1);
+ }
}
}