summaryrefslogtreecommitdiff
path: root/test/tsan/fd_socketpair_norace.cc
diff options
context:
space:
mode:
authorMax Moroz <mmoroz@chromium.org>2019-04-12 21:00:12 +0000
committerMax Moroz <mmoroz@chromium.org>2019-04-12 21:00:12 +0000
commit27203330a45da31e6db3163eceda5f6038fcc4dc (patch)
tree7f5c0f4a8a7b59a8d3569dc3449ddccc78b4ade9 /test/tsan/fd_socketpair_norace.cc
parent2a6ceae424a519912d6e10dc7db77c6bd652a978 (diff)
downloadcompiler-rt-27203330a45da31e6db3163eceda5f6038fcc4dc.tar.gz
[libFuzzer] Fix DataFlow.cpp logic when tracing long inputs.
Summary: 1. Do not create DFSan labels for the bytes which we do not trace. This is where we run out of labels at the first place. 2. When dumping the traces on the disk, make sure to offset the label identifiers by the number of the first byte in the trace range. 3. For the last label, make sure to write it at the last position of the trace bit string, as that label represents the input size, not any particular byte. Also fixed the bug with division in python which I've introduced when migrated the scripts to Python3 (`//` is required for integral division). Otherwise, the scripts are wasting too much time unsuccessfully trying to collect and process traces from the long inputs. For more context, see https://github.com/google/oss-fuzz/issues/1632#issuecomment-481761789 Reviewers: kcc Reviewed By: kcc Subscribers: delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D60538 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/fd_socketpair_norace.cc')
0 files changed, 0 insertions, 0 deletions