iverase opened a new pull request, #13704: URL: https://github.com/apache/lucene/pull/13704
While checking the latitude bounds we are doing the following `lat2 >= latBase + maxLatDelta` which can overflow. On the other hand when checking the longitude we are doing `lon2 - lonBase >= maxLonDelta`. This explain why we are seeing an issue for big latitudes but not for big longitudes. This PR proposes to change the check to lat2 - maxLatDelta >= latBase` in order to avoid the integer overflow. fixes https://github.com/apache/lucene/issues/13703 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org