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,p*v)),b.moveTo(h+v,q),b.lineTo(h+l-v,q),b.quadTo(h+l,q,h+l,q+v),b.lineTo(h+l,q+p-v),b.quadTo(h+l,q+p,h+l-v,q+p),b.lineTo(h+v,q+p),b.quadTo(h,q+p,h,q+p-v),b.lineTo(h,q+v),b.quadTo(h,q,h+v,q)):(b.moveTo(h,q),b.lineTo(h+l,q),b.lineTo(h+l,q+p),b.lineTo(h,q+p),b.lineTo(h,q)),b.close(),b.end(),b.fillAndStroke()}};mxUtils.extend(fa,mxRectangleShape);fa.prototype.size=.1;fa.prototype.fixedSize=!1;fa.prototype.isHtmlAllowed=function(){return!1};fa.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.state.style,
mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var h=b.width,q=b.height;b=new mxRectangle(b.x,b.y,h,q);var l=h*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var p=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;l=Math.max(l,Math.min(h*p,q*p))}b.x+=Math.round(l);b.width-=Math.round(2*l);return b}return b};