[jira] [Created] (FLINK-3362) Potential overflow in NettyBufferPool#getNumberOfAllocatedBytes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-3362) Potential overflow in NettyBufferPool#getNumberOfAllocatedBytes

Shang Yuanchun (Jira)
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)