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:
f.nodeCount+=F.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(F,function(N,H,ka,ea){return!ea||"mxGeometry"!=N.nodeName&&"mxPoint"!=N.nodeName||"x"!=H&&"y"!=H&&"width"!=H&&"height"!=H?ea&&"mxCell"==N.nodeName&&"previous"==H?null:ka:Math.round(ka)},f)<<0}return k};EditorUi.prototype.hashValue=function(d,f,k){var u=0;if(null!=d&&"object"===typeof d&&"number"===typeof d.nodeType&&"string"===typeof d.nodeName&&"function"===typeof d.getAttribute){null!=d.nodeName&&(u^=this.hashValue(d.nodeName,
f,k));if(null!=d.attributes){null!=k&&(k.attrCount+=d.attributes.length);for(var z=0;z<d.attributes.length;z++){var B=d.attributes[z].name,F=null!=f?f(d,B,d.attributes[z].value,!0):d.attributes[z].value;null!=F&&(u^=this.hashValue(B,f,k)+this.hashValue(F,f,k))}}if(null!=d.childNodes)for(z=0;z<d.childNodes.length;z++)u=(u<<5)-u+this.hashValue(d.childNodes[z],f,k)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);f=0;null!=k&&(k.byteCount+=d.length);for(z=0;z<d.length;z++)f=(f<<5)-f+d.charCodeAt(z)<<
0;u^=f}return u};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,f,k,u,z,B,F){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,