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:
EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var A=this.graph.getPageLayout(),O=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+A.x*O.width),this.scale*(this.translate.y+A.y*O.height),this.scale*A.width*O.width,
this.scale*A.height*O.height)};b.getPreferredPageSize=function(A,O,X){A=this.getPageLayout();O=this.getPageSize();return new mxRectangle(0,0,A.width*O.width,A.height*O.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(A,O,X,U){if(null!=b.container&&!b.isViewer()){X=null!=X?X:0;U=null!=U?U:0;var aa=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),ba=mxUtils.hasScrollbars(b.container),ia=b.view.translate,qa=b.view.scale,