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 tool to generate random XDR values #3443

Closed
tamirms opened this issue Mar 4, 2021 · 0 comments · Fixed by #3523
Closed

Add tool to generate random XDR values #3443

tamirms opened this issue Mar 4, 2021 · 0 comments · Fixed by #3523
Assignees
Labels

Comments

@tamirms
Copy link
Contributor

tamirms commented Mar 4, 2021

Given an XDR data type (e.g. LedgerEntryChange) we would like to generate a set of XDR values which cover all possible structures of the data type (e.g. given an xdr union we want to make sure all branches of a union are represented in the set). The fields within the XDR values should be set to random values.

The primary motivation behind building such a tool is that we could use it to generate a corpus for fuzz testing. We could also potentially integrate this tool into a property testing framework. This tool would be particularly helpful when working on protocol upgrades which require us to update the Stellar XDR definitions (e.g. #3430)

@tamirms tamirms added the fuzzing label Mar 4, 2021
@2opremio 2opremio self-assigned this Mar 24, 2021
@tamirms tamirms assigned tamirms and unassigned 2opremio Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants