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:
EditorUi.prototype.createParentLookup=function(b,e){function f(D){var A=c[D];null==A&&(A={inserted:[],moved:{}},c[D]=A);return A}var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var k=0;k<e[EditorUi.DIFF_INSERT].length;k++){var m=e[EditorUi.DIFF_INSERT][k],u=null!=m.parent?m.parent:"",v=null!=m.previous?m.previous:"";f(u).inserted[v]=m}if(null!=e[EditorUi.DIFF_UPDATE])for(var E in e[EditorUi.DIFF_UPDATE])m=e[EditorUi.DIFF_UPDATE][E],null!=m.previous&&(u=m.parent,null==u&&(k=b.getCell(E),null!=k&&(k=
b.getParent(k),null!=k&&(u=k.getId()))),null!=u&&(f(u).moved[m.previous]=E));return c};