GitHub user uncleGen opened a pull request: https://github.com/apache/spark/pull/15915
[SPARK-18485][CORE] Underlying integer overflow when create ChunkedByteBufferOutputStream in MemoryStore ## What changes were proposed in this pull request? There is an underlying integer overflow when create ChunkedByteBufferOutputStream in MemoryStore. This PR provide a check before cast. ## How was this patch tested? You can merge this pull request into a Git repository by running: $ git pull https://github.com/uncleGen/spark SPARK-18485 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15915.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15915 ---- commit e10143b0a7beb8e0924c7ba5bf437f0848eac778 Author: uncleGen <husty...@gmail.com> Date: 2016-11-17T08:30:05Z SPARK-18485: Underlying integer overflow when create ChunkedByteBufferOutputStream in MemoryStore commit 8cd01d1d9f291a4515ae55ed15532fb89d09a006 Author: uncleGen <husty...@gmail.com> Date: 2016-11-17T08:31:28Z update code style ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org