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:
Editor.createRoughCanvas=function(l){var z=rough.canvas({getContext:function(){return l}});z.draw=function(J){var O=J.sets||[];J=J.options||this.getDefaultOptions();for(var T=0;T<O.length;T++){var W=O[T];switch(W.type){case "path":null!=J.stroke&&this._drawToContext(l,W,J);break;case "fillPath":this._drawToContext(l,W,J);break;case "fillSketch":this.fillSketch(l,W,J)}}};z.fillSketch=function(J,O,T){var W=l.state.strokeColor,V=l.state.strokeWidth,S=l.state.strokeAlpha,X=l.state.dashed,Z=T.fillWeight;
0>Z&&(Z=T.strokeWidth/2);l.setStrokeAlpha(l.state.fillAlpha);l.setStrokeColor(T.fill||"");l.setStrokeWidth(Z);l.setDashed(!1);this._drawToContext(J,O,T);l.setDashed(X);l.setStrokeWidth(V);l.setStrokeColor(W);l.setStrokeAlpha(S)};z._drawToContext=function(J,O,T){J.begin();for(var W=0;W<O.ops.length;W++){var V=O.ops[W],S=V.data;switch(V.op){case "move":J.moveTo(S[0],S[1]);break;case "bcurveTo":J.curveTo(S[0],S[1],S[2],S[3],S[4],S[5]);break;case "lineTo":J.lineTo(S[0],S[1])}}J.end();"fillPath"===O.type&&
T.filled?J.fill():J.stroke()};return z};(function(){function l(W,V,S){this.canvas=W;this.rc=V;this.shape=S;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,l.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,l.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,l.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=