You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kazuaki Ishizaki (Jira)" <ji...@apache.org> on 2020/12/09 07:16:00 UTC

[jira] [Created] (ARROW-10860) [Java] Avoid integer overflow for Json file reader

Kazuaki Ishizaki created ARROW-10860:
----------------------------------------

             Summary: [Java] Avoid integer overflow for Json file reader
                 Key: ARROW-10860
                 URL: https://issues.apache.org/jira/browse/ARROW-10860
             Project: Apache Arrow
          Issue Type: Bug
          Components: Java
    Affects Versions: 3.0.0
            Reporter: Kazuaki Ishizaki


This issue is similar to https://issues.apache.org/jira/browse/ARROW-10662.

For the current implementation in the templates, {{int * int}} multiplication is used to calculate buffer offset. The result may be larger than Integer.MAX_VALUE, which will lead to integer overflow and unexpected behaviors.



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