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:
H.getCellGeometry(y[Ea]);La.x=Math.round(H.snap(La.x));La.y=Math.round(H.snap(La.y));"auto"==U&&(La.width=Math.round(H.snap(La.width)));"auto"==I&&(La.height=Math.round(H.snap(La.height)))}};if("["==P.charAt(0)){var Ma=u;H.view.validate();this.executeLayouts(H.createLayouts(JSON.parse(P)),function(){Fa();Ma()});u=null}else if("circle"==P){var Oa=new mxCircleLayout(H);Oa.disableEdgeStyle=!1;Oa.resetEdges=!1;var Pa=Oa.isVertexIgnored;Oa.isVertexIgnored=function(Ea){return Pa.apply(this,arguments)||
0>mxUtils.indexOf(y,Ea)};this.executeLayout(function(){Oa.execute(H.getDefaultParent());Fa()},!0,u);u=null}else if("horizontaltree"==P||"verticaltree"==P||"auto"==P&&ma.length==2*y.length-1&&1==ia.length){H.view.validate();var Sa=new mxCompactTreeLayout(H,"horizontaltree"==P);Sa.levelDistance=fa;Sa.edgeRouting=!1;Sa.resetEdges=!1;this.executeLayout(function(){Sa.execute(H.getDefaultParent(),0<ia.length?ia[0]:null)},!0,u);u=null}else if("horizontalflow"==P||"verticalflow"==P||"auto"==P&&1==ia.length){H.view.validate();