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:
v,b.setStrokeColor(this.stroke),b.setLineCap("square"),b.begin(),b.moveTo(h,q),this.outline||J?b.lineTo(h+l,q):b.moveTo(h+l,q),this.outline||Y?b.lineTo(h+l,q+p):b.moveTo(h+l,q+p),this.outline||N?b.lineTo(h,q+p):b.moveTo(h,q+p),(this.outline||y)&&b.lineTo(h,q),b.end(),b.stroke(),b.setLineCap("flat")):b.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",Da);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(b,h,q,l,p){mxEllipse.prototype.paintVertexShape.apply(this,
arguments);b.setShadow(!1);b.begin();"vertical"==mxUtils.getValue(this.style,"line")?(b.moveTo(h+l/2,q),b.lineTo(h+l/2,q+p)):(b.moveTo(h,q+p/2),b.lineTo(h+l,q+p/2));b.end();b.stroke()};mxCellRenderer.registerShape("lineEllipse",Ma);mxUtils.extend(La,mxActor);La.prototype.redrawPath=function(b,h,q,l,p){h=Math.min(l,p/2);b.moveTo(0,0);b.lineTo(l-h,0);b.quadTo(l,0,l,p/2);b.quadTo(l,p,l-h,p);b.lineTo(0,p);b.close();b.end()};mxCellRenderer.registerShape("delay",La);mxUtils.extend(Ia,mxActor);Ia.prototype.size=