Kazuyuki Tanimura created SPARK-36464:
-----------------------------------------

             Summary: Fix Underlying Size Variable Initialization in 
ChunkedByteBufferOutputStream for Writing Over 2GB Data
                 Key: SPARK-36464
                 URL: https://issues.apache.org/jira/browse/SPARK-36464
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 3.1.2
            Reporter: Kazuyuki Tanimura


The `size` method of `ChunkedByteBufferOutputStream` returns a `Long` value; 
however, the underlying `_size` variable is initialized as `int`.

That causes an overflow and returns negative size when over 2GB data is written 
into `ChunkedByteBufferOutputStream`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to