pjfanning opened a new pull request, #3022:
URL: https://github.com/apache/pekko/pull/3022

   Not every likely int overflow scenarios but Copilot suggested these are low 
impact improvements.
   
   FaultHandling.scala (both AllForOneStrategy and OneForOneStrategy) — clamps 
withinTimeRange.toMillis to Int.MaxValue before converting. Without this, any 
retry window longer than ~24.8 days silently overflowed to negative, making the 
window check always false and granting unlimited restarts.
   
   FrequencySketch.scala (both FrequencySketch and FastFrequencySketch 
factories) — uses a Long intermediate before clamping resetSize, preventing 
overflow for capacities above ~214M.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to