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.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};U.style[l?"borderRight":"borderBottom"]="0.5px solid "+E.strokeClr;U.style.borderLeft="0.5px solid "+E.strokeClr});this.updateStyle();b.diagramContainer.appendChild(U);mxEvent.disableContextMenu(U);this.editorUiRefresh=b.refresh;b.refresh=function(y){K.editorUiRefresh.apply(b,
arguments);q()};q();var J=document.createElement("canvas");J.width=U.offsetWidth;J.height=U.offsetHeight;U.style.overflow="hidden";J.style.position="relative";U.appendChild(J);var c=J.getContext("2d");this.ui=b;var e=b.editor.graph;this.graph=e;this.container=U;this.canvas=J;var k=function(y,C,G,B,V){y=Math.round(y);C=Math.round(C);G=Math.round(G);B=Math.round(B);c.beginPath();c.moveTo(y+.5,C+.5);c.lineTo(G+.5,B+.5);c.stroke();V&&(l?(c.save(),c.translate(y,C),c.rotate(-Math.PI/2),c.fillText(V,0,0),