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.showError=function(a,c,f,e,g,d,k,n,u,m,r,x,A){a=new ErrorDialog(this,a,c,f||mxResources.get("ok"),e,g,d,k,x,n,u);c=Math.ceil(null!=c?c.length/50:1);this.showDialog(a.container,m||340,r||100+20*c,!0,!1,A);a.init()};EditorUi.prototype.showDialog=function(a,c,f,e,g,d,k,n,u,m){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,c,f,e,g,d,k,n,u,m);this.dialogs.push(this.dialog)};