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:
Y.y*ba,ea.y-Y.x*ba),l.lineTo(ea.x-Y.y*ba,ea.y+Y.x*ba),l.moveTo(O.x-Y.y*ba,O.y+Y.x*ba),l.lineTo(O.x+Y.y*ba,O.y-Y.x*ba),l.moveTo(O.x,O.y)):"arc"==H?(ba*=1.3,l.curveTo(ea.x-Y.y*ba,ea.y+Y.x*ba,O.x-Y.y*ba,O.y+Y.x*ba,O.x,O.y)):(l.moveTo(O.x,O.y),G=!0),ba=[O],ea=!0))}else Y=null;ea||(ba.push(X),aa=X)}this.addPoints(l,ba,y,F,!1,null,G);l.stroke()}};var E=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(l,q,y,F){return null!=q&&"centerPerimeter"==q.style[mxConstants.STYLE_PERIMETER]?
new mxPoint(q.getCenterX(),q.getCenterY()):E.apply(this,arguments)};var d=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(l,q,y,F){if(null==q||null==l||"1"!=q.style.snapToPoint&&"1"!=l.style.snapToPoint)d.apply(this,arguments);else{q=this.getTerminalPort(l,q,F);var C=this.getNextPoint(l,y,F),H=this.graph.isOrthogonal(l),G=mxUtils.toRadians(Number(q.style[mxConstants.STYLE_ROTATION]||"0")),aa=new mxPoint(q.getCenterX(),q.getCenterY());if(0!=