Language: JavaScript
Label: safe
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
O){var ra=new mxCircleLayout(z);ra.disableEdgeStyle=!1;ra.resetEdges=!1;var xa=ra.isVertexIgnored;ra.isVertexIgnored=function(ia){return xa.apply(this,arguments)||0>mxUtils.indexOf(p,ia)};this.executeLayout(function(){ra.execute(z.getDefaultParent());ya()},!0,n);n=null}else if("horizontaltree"==O||"verticaltree"==O||"auto"==O&&ta.length==2*p.length-1&&1==za.length){z.view.validate();var fa=new mxCompactTreeLayout(z,"horizontaltree"==O);fa.levelDistance=V;fa.edgeRouting=!1;fa.resetEdges=!1;this.executeLayout(function(){fa.execute(z.getDefaultParent(),