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:
for(var fa=0;fa<x.length;fa++){var la=this.model.getParent(x[fa]);if(this.model.isEdge(la)&&0>mxUtils.indexOf(x,la))return null}la=k.apply(this,arguments);var oa=!0;for(fa=0;fa<x.length&&oa;fa++)oa=oa&&this.isTableRow(x[fa]);oa&&(this.isTableCell(la)&&(la=this.model.getParent(la)),this.isTableRow(la)&&(la=this.model.getParent(la)),this.isTable(la)||(la=null));return la};Graph.prototype.click=function(x){mxGraph.prototype.click.call(this,x);this.firstClickState=x.getState();this.firstClickSource=x.getSource()};