Add test for Flags.data_flow_trace
authorWu, Yingcong <yingcong.wu@intel.com>
Wed, 8 Mar 2023 06:04:31 +0000 (22:04 -0800)
committerVitaly Buka <vitalybuka@google.com>
Wed, 8 Mar 2023 06:18:29 +0000 (22:18 -0800)
commit67f5b05cdcdceb270e6cb9e2bf363bf66fd19979
treee4a135b13d50925f93edbacfb11d0ec5352c67ce
parent91985c2ee3b3b28b768607f40d1c94a6cbcb29d8
Add test for Flags.data_flow_trace

`CollectDataFlow()` uses `Flags.collect_data_flow` and
`Flags.data_flow_trace` at the same time. But in the null check before
the invocation, only `Flags.collect_data_flow` is checked, and there is
no other method to make sure `Flags.data_flow_trace` is not null, so
adding a null check for `Flags.data_flow_trace`.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D145040
compiler-rt/lib/fuzzer/FuzzerDriver.cpp
compiler-rt/test/fuzzer/dataflow.test