Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solana: add fuzz harness for RateLimitState #280

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johnsaigle
Copy link
Collaborator

@johnsaigle johnsaigle commented Mar 7, 2024

Adds a fuzz harness for set_limit in RateLimitState. This function calls several others in the file so it's a decent choice for an initial fuzzing target.

This code also takes advantage of honggfuzz's automatic use of a fuzzing config flag. These directives are added in order to avoid noisy crashes during fuzzing that aren't representative of the state of the program (like trying crazy timestamps).

@johnsaigle johnsaigle changed the title solana: add fuzz target for RateLimitState solana: add fuzz harness for RateLimitState Mar 7, 2024
@johnsaigle johnsaigle self-assigned this Mar 14, 2024
@nik-suri nik-suri added the solana Change to Solana programs label Mar 25, 2024
@johnsaigle johnsaigle force-pushed the solana/fuzz-rate-limit-state branch 4 times, most recently from 18f0a42 to 89d20bc Compare April 10, 2024 14:57
@johnsaigle johnsaigle marked this pull request as ready for review April 10, 2024 14:58
@nik-suri nik-suri added the tests label May 8, 2024
@nik-suri nik-suri requested a review from kcsongor May 8, 2024 17:50
@nik-suri nik-suri added the P2 label May 8, 2024
@johnsaigle johnsaigle force-pushed the solana/fuzz-rate-limit-state branch from cc6f4e5 to 1242af8 Compare May 9, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 solana Change to Solana programs tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants