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

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

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

Loading…
Cancel
Save