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.addUnitInput=function(a,c,f,e,g,d,k,n,u){k=null!=k?k:0;c=document.createElement("input");c.style.position="absolute";c.style.textAlign="right";c.style.marginTop="-2px";c.style.left=228-f-e+"px";c.style.width=e+"px";c.style.height="21px";c.style.border="1px solid rgb(160, 160, 160)";c.style.borderRadius="4px";c.style.boxSizing="border-box";a.appendChild(c);e=this.createStepper(c,g,d,null,n,null,u);e.style.marginTop=k-2+"px";e.style.left=228-f+"px";a.appendChild(e);return c};