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:
BaseFormatPanel.prototype.addArrow=function(a,c){c=null!=c?c:10;var f=document.createElement("div");f.style.display="inline-block";f.style.paddingRight="4px";f.style.padding="6px";var e=10-c;2==e?f.style.paddingTop="6px":0<e?f.style.paddingTop=6-e+"px":f.style.marginTop="-2px";f.style.height=c+"px";f.style.borderLeft="1px solid #a0a0a0";c=document.createElement("img");c.setAttribute("border","0");c.setAttribute("valign","middle");c.setAttribute("src",Toolbar.prototype.dropDownImage);f.appendChild(c);
c=f.getElementsByTagName("img")[0];c.style.position="relative";c.style.left="1px";c.style.top=mxClient.IS_FF?"0px":"-4px";mxUtils.setOpacity(f,70);c=a.getElementsByTagName("div")[0];null!=c&&(c.style.paddingRight="6px",c.style.marginLeft="4px",c.style.marginTop="-1px",c.style.display="inline-block",mxUtils.setOpacity(c,60));mxUtils.setOpacity(a,100);a.style.border="1px solid #a0a0a0";a.style.backgroundColor=this.buttonBackgroundColor;a.style.backgroundImage="none";a.style.width="auto";a.className+=
" geColorBtn";mxUtils.setPrefixedStyle(a.style,"borderRadius","3px");a.appendChild(f);return c};