Language: JavaScript
Label: vulnerable
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
this.loadImage(J.target.result,mxUtils.bind(this,function(va){this.resizeImage(va,J.target.result,mxUtils.bind(this,function(Aa,sa,Ba){R(la,mxUtils.bind(this,function(){if(null!=Aa&&Aa.length<G){var ta=qa&&this.isResampleImageSize(ra.size,aa)?Math.min(1,Math.min(l/sa,l/Ba)):1;return q(Aa,ra.type,f+la*U,g+la*U,Math.round(sa*ta),Math.round(Ba*ta),ra.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),qa,l,aa,ra.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else N=