Language: JavaScript
Label: vulnerable
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:
Sa.dy?Sa.dy:0);Ga.insert(Ha)}ta.push(Ga);mxUtils.remove(qa.invert?ia:Ja,za)}}}});pa(ua,ua,ka);if(null!=v[ua.id])for(Ka=0;Ka<v[ua.id].length;Ka++)pa(ua,v[ua.id][Ka],ka)}}if(null!=da)for(aa=0;aa<k.length;aa++)for(ua=k[aa],Ka=0;Ka<da.length;Ka++)z.setAttributeForCell(ua,mxUtils.trim(da[Ka]),null);if(0<p.length){var sa=new mxParallelEdgeLayout(z);sa.spacing=P;sa.checkOverlap=!0;var ya=function(){0<sa.spacing&&sa.execute(z.getDefaultParent());for(var ia=0;ia<p.length;ia++){var ma=z.getCellGeometry(p[ia]);
ma.x=Math.round(z.snap(ma.x));ma.y=Math.round(z.snap(ma.y));"auto"==F&&(ma.width=Math.round(z.snap(ma.width)));"auto"==I&&(ma.height=Math.round(z.snap(ma.height)))}};if("["==O.charAt(0)){var wa=n;z.view.validate();this.executeLayoutList(JSON.parse(O),function(){ya();wa()});n=null}else if("circle"==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());