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:
Graph.prototype.selectTableRange=function(a,c){var f=!1;if(this.isTableCell(a)&&this.isTableCell(c)){var e=this.model.getParent(a),g=this.model.getParent(e),d=this.model.getParent(c);if(g==this.model.getParent(d)){a=e.getIndex(a);e=g.getIndex(e);var k=d.getIndex(c),n=g.getIndex(d);d=Math.max(e,n);c=Math.min(a,k);a=Math.max(a,k);k=[];for(e=Math.min(e,n);e<=d;e++){n=this.model.getChildAt(g,e);for(var u=c;u<=a;u++)k.push(this.model.getChildAt(n,u))}0<k.length&&(1<k.length||1<this.getSelectionCount()||
!this.isCellSelected(k[0]))&&(this.setSelectionCells(k),f=!0)}}return f};