Language: JavaScript
Label: safe
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.createStepper=function(a,b,f,e,g,d,k){f=null!=f?f:1;e=null!=e?e:9;var n=10*f,u=document.createElement("div");mxUtils.setPrefixedStyle(u.style,"borderRadius","3px");u.style.border="1px solid rgb(192, 192, 192)";u.style.position="absolute";var m=document.createElement("div");m.style.borderBottom="1px solid rgb(192, 192, 192)";m.style.position="relative";m.style.height=e+"px";m.style.width="10px";m.className="geBtnUp";u.appendChild(m);var r=m.cloneNode(!1);r.style.border="none";
r.style.height=e+"px";r.className="geBtnDown";u.appendChild(r);mxEvent.addGestureListeners(r,function(A){mxEvent.consume(A)},null,function(A){""==a.value&&(a.value=d||"2");var C=k?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C-(mxEvent.isShiftDown(A)?n:f),null!=b&&b(A));mxEvent.consume(A)});mxEvent.addGestureListeners(m,function(A){mxEvent.consume(A)},null,function(A){""==a.value&&(a.value=d||"0");var C=k?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+(mxEvent.isShiftDown(A)?
n:f),null!=b&&b(A));mxEvent.consume(A)});if(g){var x=null;mxEvent.addGestureListeners(u,function(A){mxEvent.consume(A)},null,function(A){if(null!=x){try{x.select()}catch(C){}x=null;mxEvent.consume(A)}})}else mxEvent.addListener(u,"click",function(A){mxEvent.consume(A)});return u};