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:
F.prototype.paintVertexShape=function(b,h,q,l,p){b.translate(h,q);h=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));q=Math.max(0,Math.min(p,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),w=mxUtils.getValue(this.style,"rounded",!1),J=mxUtils.getValue(this.style,"absoluteArcSize",!1),y=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));J||(y*=Math.min(l,p));
y=Math.min(y,.5*l,.5*(p-q));h=Math.max(h,y);h=Math.min(l-y,h);w||(y=0);b.begin();"left"==v?(b.moveTo(Math.max(y,0),q),b.lineTo(Math.max(y,0),0),b.lineTo(h,0),b.lineTo(h,q)):(b.moveTo(l-h,q),b.lineTo(l-h,0),b.lineTo(l-Math.max(y,0),0),b.lineTo(l-Math.max(y,0),q));w?(b.moveTo(0,y+q),b.arcTo(y,y,0,0,1,y,q),b.lineTo(l-y,q),b.arcTo(y,y,0,0,1,l,y+q),b.lineTo(l,p-y),b.arcTo(y,y,0,0,1,l-y,p),b.lineTo(y,p),b.arcTo(y,y,0,0,1,0,p-y)):(b.moveTo(0,q),b.lineTo(l,q),b.lineTo(l,p),b.lineTo(0,p));b.close();b.fillAndStroke();
b.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(b.begin(),b.moveTo(l-30,q+20),b.lineTo(l-20,q+10),b.lineTo(l-10,q+20),b.close(),b.stroke())};mxCellRenderer.registerShape("folder",F);F.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var h=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var q=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;h=mxUtils.getValue(this.style,