You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 18:29:58 UTC

[GitHub] [beam] kennknowles opened a new issue, #18402: Potential arithmetic overflow in Generator#nextAuctionLengthMs()

kennknowles opened a new issue, #18402:
URL: https://github.com/apache/beam/issues/18402

   ```
   
       long numEventsForAuctions =
           (config.configuration.numInFlightAuctions * GeneratorConfig.PROPORTION_DENOMINATOR)
   
          / GeneratorConfig.AUCTION_PROPORTION;
   
   ```
   
   
   The multiplication is done on 32-bit integers while long is expected (numEventsForAuctions).
   
   There is possibility for arithmetic overflow
   
   Imported from Jira [BEAM-2805](https://issues.apache.org/jira/browse/BEAM-2805). Original Jira may contain additional context.
   Reported by: yuzhihong@gmail.com.


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org