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

Add fuzzy test for teerex pallet #99

Open
Niederb opened this issue Sep 28, 2022 · 1 comment
Open

Add fuzzy test for teerex pallet #99

Niederb opened this issue Sep 28, 2022 · 1 comment

Comments

@Niederb
Copy link
Contributor

Niederb commented Sep 28, 2022

The teerex pallet already contains some complex parsing logic (certificates, sgx data structures, ...) and the addition of DCAP will lead to even more parsing logic.
Given that any issue in the pallet have security implications and a panic in the pallet would be severe for the blockchain I think we should think about adding some fuzzy tests.

  • The pallet interface (just a vec of u8) is very simple so it should be quite easy
  • I think in the long run this could also be interesting for some of our other interfaces (RPC calls, externalities, ...)
@Niederb
Copy link
Contributor Author

Niederb commented Jan 19, 2023

There are now some fuzzy tests but they are not executed in an automatic fashion. So there are some additional steps needed:

  • CI integration
  • How to handle the corpus of test cases
    • Can the CI expand the corpus? How?
    • It would be very valuable to have a test for verify_dcap_quote(...)

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

No branches or pull requests

1 participant