Language: JavaScript
Label: safe
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:
Graph.prototype.visitTableCells=function(b,e){var k=null,n=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var D=0;D<n.length;D++){for(var t=this.getActualStartSize(n[D],!0),E=this.model.getChildCells(n[D],!0),d=this.getCellStyle(n[D],!0),f=null,g=[],m=0;m<E.length;m++){var q=this.getCellGeometry(E[m]),y={cell:E[m],rospan:1,colspan:1,row:D,col:m,geo:q};q=null!=q.alternateBounds?q.alternateBounds:q;y.point=new mxPoint(q.width+(null!=f?f.point.x:b.x+t.x),q.height+(null!=k&&null!=
k[0]?k[0].point.y:b.y+t.y));y.actual=y;null!=k&&null!=k[m]&&1<k[m].rowspan?(y.rowspan=k[m].rowspan-1,y.colspan=k[m].colspan,y.actual=k[m].actual):null!=f&&1<f.colspan?(y.rowspan=f.rowspan,y.colspan=f.colspan-1,y.actual=f.actual):(f=this.getCurrentCellStyle(E[m],!0),null!=f&&(y.rowspan=parseInt(f.rowspan||1),y.colspan=parseInt(f.colspan||1)));f=1==mxUtils.getValue(d,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(d,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;e(y,E.length,
n.length,b.x+(f?t.x:0),b.y+(f?t.y:0));g.push(y);f=y}k=g}};Graph.prototype.getTableLines=function(b,e,k){var n=[],D=[];(e||k)&&this.visitTableCells(b,mxUtils.bind(this,function(t,E,d,f,g){e&&t.row<d-1&&(null==n[t.row]&&(n[t.row]=[new mxPoint(f,t.point.y)]),1<t.rowspan&&n[t.row].push(null),n[t.row].push(t.point));k&&t.col<E-1&&(null==D[t.col]&&(D[t.col]=[new mxPoint(t.point.x,g)]),1<t.colspan&&D[t.col].push(null),D[t.col].push(t.point))}));return n.concat(D)};