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:
c=c.getCenterY();c=new mxPoint(ua,c);n&&(u.x<D||u.x>D+I?c.y=u.y:c.x=u.x);return mxUtils.getPerimeterPoint(ha,c,u)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,m,u,n){var t="0"!=mxUtils.getValue(m.style,"fixedSize","0"),C=t?O.prototype.fixedSize:O.prototype.size;null!=m&&(C=mxUtils.getValue(m.style,"size",C));t&&(C*=m.view.scale);var D=c.x,ha=c.y,I=c.width,ua=c.height;m=null!=m?mxUtils.getValue(m.style,mxConstants.STYLE_DIRECTION,
mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;m==mxConstants.DIRECTION_EAST?(t=t?Math.max(0,Math.min(.5*I,C)):I*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D+t,ha),new mxPoint(D+I-t,ha),new mxPoint(D+I,ha+ua),new mxPoint(D,ha+ua),new mxPoint(D+t,ha)]):m==mxConstants.DIRECTION_WEST?(t=t?Math.max(0,Math.min(I,C)):I*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha),new mxPoint(D+I,ha),new mxPoint(D+I-t,ha+ua),new mxPoint(D+t,ha+ua),new mxPoint(D,ha)]):m==mxConstants.DIRECTION_NORTH?(t=t?Math.max(0,
Math.min(ua,C)):ua*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha+t),new mxPoint(D+I,ha),new mxPoint(D+I,ha+ua),new mxPoint(D,ha+ua-t),new mxPoint(D,ha+t)]):(t=t?Math.max(0,Math.min(ua,C)):ua*Math.max(0,Math.min(1,C)),ha=[new mxPoint(D,ha),new mxPoint(D+I,ha+t),new mxPoint(D+I,ha+ua-t),new mxPoint(D,ha+ua),new mxPoint(D,ha)]);ua=c.getCenterX();c=c.getCenterY();c=new mxPoint(ua,c);n&&(u.x<D||u.x>D+I?c.y=u.y:c.x=u.x);return mxUtils.getPerimeterPoint(ha,c,u)};mxStyleRegistry.putValue("trapezoidPerimeter",