flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-3362) Potential overflow in NettyBufferPool#getNumberOfAllocatedBytes
Date Sun, 07 Feb 2016 23:29:39 GMT
Ted Yu created FLINK-3362:
-----------------------------

             Summary: Potential overflow in NettyBufferPool#getNumberOfAllocatedBytes
                 Key: FLINK-3362
                 URL: https://issues.apache.org/jira/browse/FLINK-3362
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code:

      long allocatedBytes = numChunks * chunkSize;

The evaluation of numChunks * chunkSize is done using 32-bit arithmetic.
This may result in overflow since the expected type of expression is long.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message