Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
l.prototype.quadTo=function(aa,Y,ka,qa){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,aa,Y,ka,qa),this.lastX=ka,this.lastY=qa)};l.prototype.curveTo=function(aa,Y,ka,qa,ra,pa){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,aa,Y,ka,qa,ra,pa),this.lastX=ra,this.lastY=pa)};l.prototype.arcTo=function(aa,Y,ka,qa,ra,pa,wa){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var Ca=mxUtils.arcToCurves(this.lastX,
this.lastY,aa,Y,ka,qa,ra,pa,wa);if(null!=Ca)for(var Ba=0;Ba<Ca.length;Ba+=6)this.curveTo(Ca[Ba],Ca[Ba+1],Ca[Ba+2],Ca[Ba+3],Ca[Ba+4],Ca[Ba+5]);this.lastX=pa;this.lastY=wa}};l.prototype.rect=function(aa,Y,ka,qa){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(aa,Y,ka,qa,this.getStyle(!0,!0)))};l.prototype.ellipse=function(aa,Y,ka,qa){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=