The gsownloadEstimator process only checks the requested size against the configured raster size limit, without worrying to check that it is also a valid Integer value.
If one raises the raster size limit above Integer.MAX_VALUE in the configuration and tries to download a huge image (e.g. 100,000 * 60,000), the estimator will say the request is ok, but the actual download will throw an exception:
At the very least, the estimator should return false if the requested image size is above Integer.MAX_VALUE.
The fix is not to be seen as a definitive solution to the problem, just as a bare minimum sanity check, as OOM exceptions may still occur and cause the actual download to fail, even if the estimator said it was OK to download.
Mass closing all resolved issues not modified in the last 4 weeks