Skip to content

Add fuzz test#86

Open
edznux-dd wants to merge 1 commit intomasterfrom
edouard/add-fuzz-tester
Open

Add fuzz test#86
edznux-dd wants to merge 1 commit intomasterfrom
edouard/add-fuzz-tester

Conversation

@edznux-dd
Copy link
Copy Markdown

@edznux-dd edznux-dd commented Jun 27, 2025

What does this PR do?

This PR adds a fuzz test (and a regression test with its first crash.

Motivation

Helps to make sure sketches-go doesn't panic on any payload.

Additional Notes

The regression test will try to allocate a huge amount of memory, and fail / crash trying. And because it's a runtime panic, as far as I can tell, you can't recover from it.

=== RUN   TestRegression
fatal error: runtime: out of memory

You can run the fuzzer locally, go test -fuzz=FuzzDecodeDDSketch -run=FuzzDecodeDDSketch

Associated Issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant