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:
Sidebar.prototype.createEdgeTemplate=function(a,c,f,e,g,d,k,n){a=new mxCell(null!=e?e:"",new mxGeometry(0,0,c,f),a);a.geometry.setTerminalPoint(new mxPoint(0,f),!0);a.geometry.setTerminalPoint(new mxPoint(c,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],c,f,g,d,k,n)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,c,f,e,g,d,k,n){return this.createItem(a,e,g,null!=n?n:!0,c,f,d,k)};