Skip to content

Commit c3f3ab7

Browse files
committed
prometheus: update to native go fuzzing
Related to prometheus/prometheus#17393 Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
1 parent bfaadb3 commit c3f3ab7

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

projects/prometheus/build.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
# limitations under the License.
1515
#
1616
################################################################################
17-
# Wrong naming in this fuzzer breaks the coverage build
18-
rm promql/fuzz_test.go
1917

20-
compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseMetric fuzzParseMetric
21-
compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseOpenMetric fuzzParseOpenMetric
22-
compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseMetricSelector fuzzParseMetricSelector
23-
compile_go_fuzzer github.com/prometheus/prometheus/promql FuzzParseExpr fuzzParseExpr
18+
compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseMetricText fuzzParseMetricText
19+
compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseOpenMetric fuzzParseOpenMetric
20+
compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseMetricSelector fuzzParseMetricSelector
21+
compile_native_go_fuzzer_v2 github.com/prometheus/prometheus/util/fuzzing FuzzParseExpr fuzzParseExpr
22+
23+
/root/.go/bin/go generate -tags fuzzing ./util/fuzzing/corpus_gen
24+
mv util/fuzzing/fuzzParseExpr_seed_corpus.zip $OUT/
25+
mv util/fuzzing/fuzzParseMetricSelector_seed_corpus.zip $OUT/
26+
mv util/fuzzing/fuzzParseMetricText_seed_corpus.zip $OUT/
27+
mv util/fuzzing/fuzzParseOpenMetric_seed_corpus.zip $OUT/

0 commit comments

Comments
 (0)