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(Da){try{var Ba=new Image;Ba.onload=mxUtils.bind(this,function(){try{var Va=function(){mxClient.IS_SF?window.setTimeout(function(){Ea.drawImage(Ba,0,0);l(Wa,Da)},0):(Ea.drawImage(Ba,0,0),l(Wa,Da))},Wa=document.createElement("canvas"),La=parseInt(Da.getAttribute("width")),$a=parseInt(Da.getAttribute("height"));ia=null!=ia?ia:1;null!=A&&(ia=aa?Math.min(1,Math.min(3*A/(4*$a),A/La)):A/La);ia=this.getMaxCanvasScale(La,$a,ia);La=Math.ceil(ia*La);$a=Math.ceil(ia*$a);Wa.setAttribute("width",La);Wa.setAttribute("height",