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:
arguments));this.originalClose.apply(this.canvas,arguments)};fa.prototype.quadTo=function(c,m,u,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=n};fa.prototype.curveTo=function(c,m,u,n,t,C){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=C};fa.prototype.arcTo=function(c,m,u,n,t,C,D){this.originalArcTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=D};fa.prototype.lineTo=function(c,m){if(null!=this.lastX&&null!=this.lastY){var u=function(na){return"number"===
typeof na?na?0>na?-1:1:na===na?0:NaN:NaN},n=Math.abs(c-this.lastX),t=Math.abs(m-this.lastY),C=Math.sqrt(n*n+t*t);if(2>C){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=m;return}var D=Math.round(C/10),ha=this.defaultVariation;5>D&&(D=5,ha/=3);var I=u(c-this.lastX)*n/D;u=u(m-this.lastY)*t/D;n/=C;t/=C;for(C=0;C<D;C++){var ua=(Math.random()-.5)*ha;this.originalLineTo.call(this.canvas,I*C+this.lastX-ua*t,u*C+this.lastY-ua*n)}this.originalLineTo.call(this.canvas,c,m)}else this.originalLineTo.apply(this.canvas,