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:
EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,c=a.getSelectionCells(),f=this.initSelectionState(),e=!0,g=0;g<c.length;g++){var d=a.getCurrentCellStyle(c[g]);"0"!=mxUtils.getValue(d,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(f,c[g],c,e),e=!1)}this.updateSelectionStateForTableCells(f);return f};