Prevent infite loop on nested try/catch/if/then/else (fix #533)

pull/535/head
Josselin 4 years ago
parent a23a137a5e
commit 7f06947601
  1. 3
      slither/solc_parsing/declarations/function.py

@ -995,7 +995,8 @@ class FunctionSolc:
link_nodes(node, end_node)
else:
for son in node.sons:
self._fix_catch(son, end_node)
if son != end_node:
self._fix_catch(son, end_node)
def _add_param(self, param: Dict) -> LocalVariableSolc:

Loading…
Cancel
Save