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(g){var x=rough.canvas({getContext:function(){return g}});x.draw=function(F){var M=F.sets||[];F=F.options||this.getDefaultOptions();for(var Q=0;Q<M.length;Q++){var S=M[Q];switch(S.type){case "path":null!=F.stroke&&this._drawToContext(g,S,F);break;case "fillPath":this._drawToContext(g,S,F);break;case "fillSketch":this.fillSketch(g,S,F)}}};x.fillSketch=function(F,M,Q){var S=g.state.strokeColor,W=g.state.strokeWidth,T=g.state.strokeAlpha,X=g.state.dashed,Z=Q.fillWeight;