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:
w&&"square"==v||!y?b.lineTo(l,0):b.lineTo(l-J,0)};Fa.prototype.paintNE=function(b,h,q,l,p,v,w,J,y){if(y)if("rounded"==w||"default"==w&&"rounded"==v||"invRound"==w||"default"==w&&"invRound"==v){h=0;if("rounded"==w||"default"==w&&"rounded"==v)h=1;b.arcTo(J,J,0,0,h,l,J)}else("snip"==w||"default"==w&&"snip"==v||"fold"==w||"default"==w&&"fold"==v)&&b.lineTo(l,J);else b.lineTo(l,0)};Fa.prototype.paintRight=function(b,h,q,l,p,v,w,J,y){"square"==w||"default"==w&&"square"==v||!y?b.lineTo(l,p):b.lineTo(l,p-