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:
.25*h);b.lineTo(.5*h,h*Sa);b.lineTo(h,.25*h);b.lineTo(.5*h,(.5-Sa)*h);b.lineTo(0,.25*h);b.close();b.end()};mxCellRenderer.registerShape("isoRectangle",d);mxUtils.extend(k,mxCylinder);k.prototype.size=20;k.prototype.redrawPath=function(b,h,q,l,p,v){h=Math.min(l,p/(.5+Na));v?(b.moveTo(0,.25*h),b.lineTo(.5*h,(.5-Sa)*h),b.lineTo(h,.25*h),b.moveTo(.5*h,(.5-Sa)*h),b.lineTo(.5*h,(1-Sa)*h)):(b.translate((l-h)/2,(p-h)/2),b.moveTo(0,.25*h),b.lineTo(.5*h,h*Sa),b.lineTo(h,.25*h),b.lineTo(h,.75*h),b.lineTo(.5*
h,(1-Sa)*h),b.lineTo(0,.75*h),b.close());b.end()};mxCellRenderer.registerShape("isoCube",k);mxUtils.extend(n,mxCylinder);n.prototype.redrawPath=function(b,h,q,l,p,v){h=Math.min(p/2,Math.round(p/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)b.moveTo(0,h),b.curveTo(0,2*h,l,2*h,l,h),v||(b.stroke(),b.begin()),b.translate(0,h/2),b.moveTo(0,h),b.curveTo(0,2*h,l,2*h,l,h),v||(b.stroke(),b.begin()),b.translate(0,h/2),b.moveTo(0,h),b.curveTo(0,2*h,l,2*h,l,h),v||(b.stroke(),b.begin()),b.translate(0,