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:
function(P){E=P};this.setAutoScroll=function(P){U=P};this.setOpenFill=function(P){J=P};this.setStopClickEnabled=function(P){k=P};this.setSelectInserted=function(P){n=P};this.setSmoothing=function(P){l=P};this.setPerfectFreehandMode=function(P){t=P};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=function(P){p.size=P};this.getBrushSize=function(){return p.size};var y=function(P){e=P;b.getRubberband().setEnabled(!P);b.graphHandler.setSelectEnabled(!P);b.graphHandler.setMoveEnabled(!P);
b.container.style.cursor=P?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){y(!0)};this.isDrawing=function(){return e};var C=mxUtils.bind(this,function(P){if(d){var N=D.length,H=k&&0<z.length&&null!=D&&2>D.length;H||z.push.apply(z,D);D=[];z.push(null);q.push(d);d=null;(H||E)&&this.stopDrawing();E&&(!H||2<=N)&&this.startDrawing();mxEvent.consume(P)}}),G=new mxCell;G.edge=!0;var B=function(){var P=b.getCurrentCellStyle(G);P=mxUtils.getValue(b.currentVertexStyle,