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.handleError=function(a,c,f,e,g){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=c){g=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");c=null!=c?c:mxResources.get("error");null!=a&&null!=a.message&&(g=mxUtils.htmlEntities(a.message));this.showError(c,g,d,f,null,null,null,null,null,null,null,null,e?f:null)}else null!=f&&f()};