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:
null==I.getTerminal(g[x],!0)){I.setTerminal(g[x],H,!0);var F=e.getCellGeometry(g[x]);F.points=null;null!=F.getTerminalPoint(!0)&&F.setTerminalPoint(null,!0)}}finally{I.endUpdate()}return g}}var G={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get("selectSiblings")},B=c.onKeyDown;c.onKeyDown=function(H){try{var m=e.getSelectionCell();if(e.isEnabled()&&!e.isEditing()&&null!=m){var v=mxEvent.isAltDown(H)&&mxEvent.isShiftDown(H)?
G[H.keyCode]:null;null!=v?(v.funct(H),mxEvent.consume(H)):d(m)&&(v=null,0<e.getIncomingTreeEdges(m).length&&(9==H.which?v=mxEvent.isShiftDown(H)?K(m):E(m):13==H.which&&(v=L(m,!mxEvent.isShiftDown(H)))),null!=v&&0<v.length?(1==v.length&&e.model.isEdge(v[0])?e.setSelectionCell(e.model.getTerminal(v[0],!1)):e.setSelectionCell(v[v.length-1]),null!=c.hoverIcons&&c.hoverIcons.update(e.view.getState(m)),e.startEditingAtCell(m),mxEvent.consume(H)):37==H.keyCode?(J(m,mxConstants.DIRECTION_WEST),mxEvent.consume(H)):
38==H.keyCode?(J(m,mxConstants.DIRECTION_NORTH),mxEvent.consume(H)):39==H.keyCode?(J(m,mxConstants.DIRECTION_EAST),mxEvent.consume(H)):40==H.keyCode&&(J(m,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(A){c.handleError(A)}mxEvent.isConsumed(H)||B.apply(this,arguments)};var V=e.connectVertex;e.connectVertex=function(H,m,v,A,I,g,x){var F=e.getIncomingTreeEdges(H);if(d(H)){var M=D(H),Q=M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST,S=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;