[EOSIO/eos] Gh#3635 abi gen segfault (#3644)

Add recursion depth check to prevent recursive definition from going into infinite recursion and causing SEGFAULT.
You can view, comment on, or merge this pull request online at:

https://github.com/EOSIO/eos/pull/3644

— Commit Summary —

* Add test for nested recursive array type
* Guard against infinite recursion

— File Changes —

M libraries/abi_generator/abi_generator.cpp (44)
M libraries/abi_generator/include/eosio/abi_generator/abi_generator.hpp (15)
M unittests/abi_tests.cpp (25)

— Patch Links —

https://github.com/EOSIO/eos/pull/3644.patch
https://github.com/EOSIO/eos/pull/3644.diff

Добавить комментарий