Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
Graph.prototype.fitWindow=function(b,e){e=null!=e?e:10;var g=this.container.clientWidth-e,n=this.container.clientHeight-e;this.zoomTo(Math.floor(20*Math.min(g/b.width,n/b.height))/20);if(mxUtils.hasScrollbars(this.container)){var y=this.view.translate;this.container.scrollLeft=(b.x+y.x)*this.view.scale-Math.max((g-b.width*this.view.scale)/2+e/2,0);this.container.scrollTop=(b.y+y.y)*this.view.scale-Math.max((n-b.height*this.view.scale)/2+e/2,0)}};