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:
u))}}finally{n.getModel().endUpdate()}}else{u=n.model.getParent(k);var z=n.getView().scale;d=null;1==n.getSelectionCount()&&n.model.isVertex(k)&&null!=n.layoutManager&&!n.isCellLocked(k)&&(d=n.layoutManager.getLayout(u));if(null!=d&&d.constructor==mxStackLayout)W=u.getIndex(k),37==R||38==R?n.model.add(u,k,Math.max(0,W-1)):(39==R||40==R)&&n.model.add(u,k,Math.min(n.model.getChildCount(u),W+1));else{var B=n.graphHandler;null!=B&&(null==B.first&&B.start(k,0,0,n.getMovableCells(f)),null!=B.first&&(k=
f=0,37==R?f=-W:38==R?k=-W:39==R?f=W:40==R&&(k=W),B.currentDx+=f*z,B.currentDy+=k*z,B.checkPreview(),B.updatePreview()),null!=E&&window.clearTimeout(E),E=window.setTimeout(function(){if(null!=B.first){var F=B.roundLength(B.currentDx/z),K=B.roundLength(B.currentDy/z);B.moveCells(B.cells,F,K);B.reset()}},400))}}}}var g=this,n=this.editor.graph,y=new mxKeyHandler(n),q=y.isEventIgnored;y.isEventIgnored=function(R){return!(mxEvent.isShiftDown(R)&&9==R.keyCode)&&(!this.isControlDown(R)||mxEvent.isShiftDown(R)||