This PR refactors and shares oss-fuzz specific test harness code with the afl fuzzer harness. ChangeLog updated.

This commit is contained in:
Bhargava Shastry
2019-01-23 11:06:25 +01:00
parent ea292393a3
commit 24b1de7df0
13 changed files with 377 additions and 218 deletions
+7
View File
@@ -334,4 +334,11 @@ bool containerEqual(Container const& _lhs, Container const& _rhs, Compare&& _com
return std::equal(std::begin(_lhs), std::end(_lhs), std::begin(_rhs), std::end(_rhs), std::forward<Compare>(_compare));
}
inline std::string findAnyOf(std::string const& _haystack, std::vector<std::string> const& _needles)
{
for (std::string const& needle: _needles)
if (_haystack.find(needle) != std::string::npos)
return needle;
return "";
}
}