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:
mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(ea){q(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(ea){q(100);mxEvent.consume(ea)}));mxEvent.addListener(e,"mouseleave",mxUtils.bind(this,function(ea){mxEvent.isTouchEvent(ea)||q(30)}));var E=this.graph,L=E.getTolerance();E.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ea,ca){this.startX=ca.getGraphX();this.startY=ca.getGraphY();this.scrollLeft=E.container.scrollLeft;this.scrollTop=
E.container.scrollTop},mouseMove:function(ea,ca){},mouseUp:function(ea,ca){mxEvent.isTouchEvent(ca.getEvent())&&Math.abs(this.scrollLeft-E.container.scrollLeft)<L&&Math.abs(this.scrollTop-E.container.scrollTop)<L&&Math.abs(this.startX-ca.getGraphX())<L&&Math.abs(this.startY-ca.getGraphY())<L&&(0<parseFloat(e.style.opacity||0)?y():q(30))}})}for(var T=this.toolbarItems,G=0,M=mxUtils.bind(this,function(ea,ca,ja,ma){ea=this.createToolbarButton(ea,ca,ja,ma);e.appendChild(ea);G++;return ea}),R=null,W=null,