envoyproxy / envoyproxy/envoy

Limit the size of the stat prefix in fuzz tests

Open
#40,527 3 comments 0 reactions 2 assignees Claimed by @ebm View on GitHub
area/ext_proc area/fuzzing beginner bug help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

Test case file:
[clusterfuzz-testcase-ext_proc_unit_test_fuzz-5199582416928768.txt](https://github.com/user-attachments/files/21553872/clusterfuzz-testcase-ext_proc_unit_test_fuzz-5199582416928768.txt)

fuzzer generated all dots 1Mb stats prefix. It needs to be limited to avoid excessive CPU cleanup of the stats store.

Steps to reproduce:

Copy downloaded test case file into the `test/extensions/filters/http/ext_proc/unit_test_fuzz/ext_proc_corpus/` directory and run:

```
bazel build --config=asan -c dbg test/extensions/filters/http/ext_proc/unit_test_fuzz/ext_proc_unit_test_fuzz
bazel-bin/test/extensions/filters/http/ext_proc/unit_test_fuzz/ext_proc_unit_test_fuzz test/extensions/filters/http/ext_proc/unit_test_fuzz/ext_proc_corpus/clusterfuzz-testcase-ext_proc_unit_test_fuzz-5199582416928768.txt
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.