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:
(this.thumbImageCache={}),this.editor.convertImages(U,ka,this.thumbImageCache)):ka(U)});ba?this.embedFonts(X,ja):(this.editor.addFontCss(X),ja(X))}catch(U){this.handleError(U)}};EditorUi.prototype.addRadiobox=function(d,f,g,l,q,y,F){return this.addCheckbox(d,g,l,q,y,F,!0,f)};EditorUi.prototype.addCheckbox=function(d,f,g,l,q,y,F,C){y=null!=y?y:!0;var H=document.createElement("input");H.style.marginRight="8px";H.style.marginTop="16px";H.setAttribute("type",F?"radio":"checkbox");F="geCheckbox-"+Editor.guid();
H.id=F;null!=C&&H.setAttribute("name",C);g&&(H.setAttribute("checked","checked"),H.defaultChecked=!0);l&&H.setAttribute("disabled","disabled");y&&(d.appendChild(H),g=document.createElement("label"),mxUtils.write(g,f),g.setAttribute("for",F),d.appendChild(g),q||mxUtils.br(d));return H};EditorUi.prototype.addEditButton=function(d,f){var g=this.addCheckbox(d,mxResources.get("edit")+":",!0,null,!0);g.style.marginLeft="24px";var l=this.getCurrentFile(),q="";null!=l&&l.getMode()!=App.MODE_DEVICE&&l.getMode()!=