Skip to content

[822] General: Add cargo-fuzz harness for vault share-price math - #833

Merged
Junirezz merged 9 commits into
Junirezz:mainfrom
Max-Owolabi:fix/822-general-add-cargo-fuzz-harness-for-vault-share-price-math
Jun 26, 2026
Merged

[822] General: Add cargo-fuzz harness for vault share-price math#833
Junirezz merged 9 commits into
Junirezz:mainfrom
Max-Owolabi:fix/822-general-add-cargo-fuzz-harness-for-vault-share-price-math

Conversation

@Max-Owolabi

Copy link
Copy Markdown
Contributor

Summary

  • Add contracts/vault/fuzz/ libFuzzer crate with share_price_math target wired to shared fuzz_invariants module
  • Expose checked try_assets_to_shares / try_shares_to_assets helpers in math.rs for fuzz and proptest reuse
  • Add seed corpus (fuzz/corpus/share_price_math/) and JSON fixtures (fuzz/seed_fixtures/)
  • Run a 60-second time-bounded fuzz job in rust-wasm.yml and rust-security.yml CI workflows

Closes #822

Test plan

  • cargo test --all-features --workspace in contracts/ (CI)
  • cargo +nightly fuzz run share_price_math -- -max_total_time=60 (CI)
  • Existing proptest suite in fuzz_math.rs continues to pass

@drips-wave

drips-wave Bot commented Jun 24, 2026

Copy link
Copy Markdown

@Max-Owolabi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Extract host-buildable share-price-math crate, wire libFuzzer target with
seed corpus and invariants, and add CI fuzz job. Closes Junirezz#822

Co-authored-by: Cursor <cursoragent@cursor.com>
@Max-Owolabi
Max-Owolabi force-pushed the fix/822-general-add-cargo-fuzz-harness-for-vault-share-price-math branch from 42ba1d4 to 6deca0c Compare June 24, 2026 22:18
Max-Owolabi and others added 8 commits June 24, 2026 23:27
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…on for CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…bucketing.

Co-authored-by: Cursor <cursoragent@cursor.com>
…rve cursor state.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Junirezz
Junirezz merged commit ff6e526 into Junirezz:main Jun 26, 2026
6 of 9 checks passed
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.

General: Add cargo-fuzz harness for vault share-price math

2 participants