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

Rpc_genfake.{gentest,genall}: avoid crash on recursive types #176

Merged
merged 2 commits into from
Sep 25, 2024

Commits on Sep 25, 2024

  1. Rpc_genfake.{gentest,genall}: avoid crash on recursive types

    Attempting to call 'genall' on a recursive type would either result in an OOM kill,
    because it'd recurse infinitely trying to generate testcases.
    When recursion depth is negative return the empty list instead of generating recursively and taking the first.
    
    Signed-off-by: Edwin Török <[email protected]>
    edwintorok committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    72938a6 View commit details
    Browse the repository at this point in the history
  2. Rpc_genfake.gentest: move comment to docstring

    Signed-off-by: Edwin Török <[email protected]>
    edwintorok committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    62fa2c4 View commit details
    Browse the repository at this point in the history