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:
function(b,h,q,l,p){h=Math.max(0,Math.min(l,Math.min(p,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));q=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(h,0),new mxPoint(l,0),new mxPoint(l,p),new mxPoint(0,p),new mxPoint(0,h)],this.isRounded,q,!0);b.end()};mxCellRenderer.registerShape("card",E);mxUtils.extend(O,mxActor);O.prototype.size=.4;O.prototype.redrawPath=function(b,h,q,l,p){h=p*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
"size",this.size))));b.moveTo(0,h/2);b.quadTo(l/4,1.4*h,l/2,h/2);b.quadTo(3*l/4,h*(1-1.4),l,h/2);b.lineTo(l,p-h/2);b.quadTo(3*l/4,p-1.4*h,l/2,p-h/2);b.quadTo(l/4,p-h*(1-1.4),0,p-h/2);b.lineTo(0,h/2);b.close();b.end()};O.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var h=mxUtils.getValue(this.style,"size",this.size),q=b.width,l=b.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return h*=