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:
function(H){if(e.isEnabled()&&1==e.getSelectionCount()){var m=e.getSelectionCell(),v=mxEvent.isControlDown(H)?null:e.getIncomingTreeEdges(m);H=[];if(null!=v&&0<v.length&&(v=e.getOutgoingTreeEdges(e.model.getTerminal(v[0],!0)),null!=v))for(var A=0;A<v.length;A++)H.push(e.model.getTerminal(v[A],!1));0==H.length&&(H=e.model.getChildren(e.model.getParent(m)));e.setSelectionCells(H)}},null,null,"Alt+Shift+S");var p=e.removeCells;e.removeCells=function(H,m){m=null!=m?m:!0;null==H&&(H=this.getDeletableCells(this.getSelectionCells()));
m&&(H=this.getDeletableCells(this.addAllEdges(H)));for(var v=[],A=0;A<H.length;A++){var I=H[A];k.isEdge(I)&&u(I)&&(v.push(I),I=k.getTerminal(I,!1));if(d(I)){var g=[];e.traverse(I,!0,function(x,F){var M=null!=F&&e.isTreeEdge(F);M&&g.push(F);(null==F||M)&&g.push(x);return null==F||M});0<g.length&&(v=v.concat(g),I=e.getIncomingTreeEdges(H[A]),H=H.concat(I))}else null!=I&&v.push(H[A])}H=v;return p.apply(this,arguments)};c.hoverIcons.getStateAt=function(H,m,v){return d(H.cell)?null:this.graph.view.getState(this.graph.getCellAt(m,