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:
b.moveTo(h,q);b.lineTo(h+w,q);b.lineTo(h+w,q+Math.max(0,J-1.5*v));b.lineTo(h+Math.max(0,w-v),q+J);b.lineTo(h,q+J);b.close();b.fillAndStroke();b.begin();b.moveTo(h+w,q);b.lineTo(h+l,q);b.lineTo(h+l,q+p);b.lineTo(h,q+p);b.lineTo(h,q+J);b.stroke()};mxCellRenderer.registerShape("umlFrame",oa);mxPerimeter.CenterPerimeter=function(b,h,q,l){return new mxPoint(b.getCenterX(),b.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(b,h,
q,l){l=Z.prototype.size;null!=h&&(l=mxUtils.getValue(h.style,"size",l)*h.view.scale);h=parseFloat(h.style[mxConstants.STYLE_STROKEWIDTH]||1)*h.view.scale/2-1;q.x<b.getCenterX()&&(h=-1*(h+1));return new mxPoint(b.getCenterX()+h,Math.min(b.y+b.height,Math.max(b.y+l,q.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(b,h,q,l){l=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",