Comments (2)
How about the following?
void ConvertWOFF2ToTTF(const std::vector<std::uint8_t>& bytes) {
const uint8_t* const data{bytes.data()};
const int size{static_cast<int>(bytes.size())};
// ...
}
FUZZ_TEST(AlbertoFuzzTest, ConvertWOFF2ToTTF);
from fuzztest.
Thanks it worked!
INFO: Found 1 target...
Target //:alberto up-to-date:
bazel-bin/alberto
INFO: Elapsed time: 3.321s, Critical Path: 3.27s
INFO: 3 processes: 1 internal, 2 linux-sandbox.
INFO: Build completed successfully, 3 total actions
INFO: Running command line: external/bazel_tools/tools/test/test-setup.sh ./alberto '--fuzz=AlbertoFuzzTest.ConvertWOFF2ToTTF'
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //:alberto
-----------------------------------------------------------------------------
[.] Sanitizer coverage enabled. Counter map size: 30385, Cmp map size: 262144
Note: Google Test filter = AlbertoFuzzTest.ConvertWOFF2ToTTF
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from AlbertoFuzzTest
[ RUN ] AlbertoFuzzTest.ConvertWOFF2ToTTF
FUZZTEST_PRNG_SEED=tnaxpgtwGcTdechb4cT-MAbJTMn3j09oJQQ1jE_rR5Y
[*] Corpus size: 1 | Edges covered: 152 | Fuzzing time: 342.062us | Total runs: 1.00e+00 | Runs/secs: 2923 | Max stack usage: 2880
[*] Corpus size: 2 | Edges covered: 152 | Fuzzing time: 745.952us | Total runs: 3.00e+00 | Runs/secs: 4021 | Max stack usage: 2880
[*] Corpus size: 3 | Edges covered: 154 | Fuzzing time: 1.85638ms | Total runs: 3.50e+01 | Runs/secs: 18853 | Max stack usage: 2880
[*] Corpus size: 4 | Edges covered: 154 | Fuzzing time: 4.787332ms | Total runs: 3.90e+01 | Runs/secs: 8146 | Max stack usage: 2880
[*] Corpus size: 5 | Edges covered: 154 | Fuzzing time: 6.88421ms | Total runs: 4.20e+01 | Runs/secs: 6100 | Max stack usage: 2880
Is it worth to add an example in the docs?
from fuzztest.
Related Issues (20)
- libfuzzer compatibility mode spams `Unexpected file format` without making any progress (СMake)
- Target based fuzztest_setup_fuzzing_flags
- Cannot test a pointer type HOT 1
- How can I generate a profraw file based on the output of my custom fuzzer? HOT 6
- Fuzz mode as documented in https://github.com/google/fuzztest/blob/main/doc/quickstart-cmake.md doesn't work HOT 1
- #include <string> in fuzztest.h not found HOT 7
- how to use fuzztest on Android(aarch64)
- FUZZ_TEST_F Should Respect GTEST_SKIP() in GoogleTest Base Fixture
- support for timeout HOT 5
- how FUZZ_TEST enable multithreading
- Latest commits have issues with absl/strings:string_view HOT 3
- DFUZZTEST_COMPATIBILITY_MODE=libfuzzer failing on linking HOT 1
- MBErr: Builder group name "chromium.fuzz" not found in "/opt/chromium/src/tools/mb/mb_config.pyl" HOT 2
- cc_fuzztest_grammar_library bazel macro cannot be used outside of com_google_fuzztest repo
- Backslashes are wrongly escaped in grammar_codegen
- Byte Array Mutator failed on empty input HOT 1
- How can I build and run the vp8_encoder_fuzz_test
- Add bzlmod support for Bazel HOT 2
- How to add a new fuzzer for libvpx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuzztest.