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:
v,"image(s) from",I.length,"cell(s): ",[I,A])}finally{q.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,q.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var m=new mxImageExport,v=q.getGraphBounds(),A=q.view.scale,I=mxUtils.createXmlDocument(),g=I.createElement("output");I.appendChild(g);I=new mxXmlCanvas2D(g);I.translate(Math.floor((1-v.x)/A),Math.floor((1-v.y)/A));I.scale(1/A);var x=0,F=I.save;I.save=function(){x++;
F.apply(this,arguments)};var M=I.restore;I.restore=function(){x--;M.apply(this,arguments)};var Q=m.drawShape;m.drawShape=function(S){mxLog.debug("entering shape",S,x);Q.apply(this,arguments);mxLog.debug("leaving shape",S,x)};m.drawState(q.getView().getState(q.model.root),I);mxLog.show();mxLog.debug(mxUtils.getXml(g));mxLog.debug("stateCounter",x)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-