Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
EditorUi.parsePng=function(b,e,g){function p(M,T){var F=q;q+=T;return M.substring(F,q)}function y(M){M=p(M,4);return M.charCodeAt(3)+(M.charCodeAt(2)<<8)+(M.charCodeAt(1)<<16)+(M.charCodeAt(0)<<24)}var q=0;if(p(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=g&&g();else if(p(b,4),"IHDR"!=p(b,4))null!=g&&g();else{p(b,17);do{g=y(b);var E=p(b,4);if(null!=e&&e(q-8,E,g))break;value=p(b,g);p(b,4);if("IEND"==E)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);