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:
g.addListener(mxEvent.SIZE,e);g.container.addEventListener("scroll",c);g.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){A=B;L.style.background=A.bkgClr;q()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,G,I,F){if(f&&4<B.height||!f&&4<B.width){if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,
D.guidePart.x1,D.guidePart.y1),d.putImageData(D.guidePart.imgData2,D.guidePart.x2,D.guidePart.y2),d.putImageData(D.guidePart.imgData3,D.guidePart.x3,D.guidePart.y3)}catch(l){}var U=D.origGuideMove.apply(this,arguments);try{d.lineWidth=.5;d.strokeStyle=A.guideClr;d.setLineDash([2]);if(f){var R=B.y+U.y+E-this.graph.container.scrollTop;var N=0;var Q=R+B.height/2;var P=E/2;var M=R+B.height;var p=0;var y=d.getImageData(N,R-1,E,3);n(N,R,E,R);R--;var C=d.getImageData(P,Q-1,E,3);n(P,Q,E,Q);Q--;var K=d.getImageData(p,
M-1,E,3);n(p,M,E,M);M--}else R=0,N=B.x+U.x+E-this.graph.container.scrollLeft,Q=E/2,P=N+B.width/2,M=0,p=N+B.width,y=d.getImageData(N-1,R,3,E),n(N,R,N,E),N--,C=d.getImageData(P-1,Q,3,E),n(P,Q,P,E),P--,K=d.getImageData(p-1,M,3,E),n(p,M,p,E),p--;if(null==D.guidePart||D.guidePart.x1!=N||D.guidePart.y1!=R)D.guidePart={imgData1:y,x1:N,y1:R,imgData2:C,x2:P,y2:Q,imgData3:K,x3:p,y3:M}}catch(l){}}else U=D.origGuideMove.apply(this,arguments);return U};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=