-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
cbcdec7
commit 435087b
Showing
2 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters