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(Q){A=Q};this.setAutoScroll=function(Q){L=Q};this.setOpenFill=function(Q){H=Q};this.setStopClickEnabled=function(Q){n=Q};this.setSelectInserted=function(Q){q=Q};this.setSmoothing=function(Q){f=Q};this.setPerfectFreehandMode=function(Q){x=Q};this.isPerfectFreehandMode=function(){return x};this.setBrushSize=function(Q){t.size=Q};this.getBrushSize=function(){return t.size};var B=function(Q){g=Q;b.getRubberband().setEnabled(!Q);b.graphHandler.setSelectEnabled(!Q);b.graphHandler.setMoveEnabled(!Q);
b.container.style.cursor=Q?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){B(!0)};this.isDrawing=function(){return g};var G=mxUtils.bind(this,function(Q){if(c){var P=v.length,M=n&&0<u.length&&null!=v&&2>v.length;M||u.push.apply(u,v);v=[];u.push(null);k.push(c);c=null;(M||A)&&this.stopDrawing();A&&(!M||2<=P)&&this.startDrawing();mxEvent.consume(Q)}}),I=new mxCell;I.edge=!0;var F=function(){var Q=b.getCurrentCellStyle(I);Q=mxUtils.getValue(b.currentVertexStyle,