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