You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/04/10 19:31:00 UTC

[jira] [Created] (CARBONDATA-2332) Potentially overflowing expression in UnsafeFixLengthColumnPage

Ted Yu created CARBONDATA-2332:
----------------------------------

             Summary: Potentially overflowing expression in UnsafeFixLengthColumnPage
                 Key: CARBONDATA-2332
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2332
             Project: CarbonData
          Issue Type: Bug
            Reporter: Ted Yu


Here is one example from getFloatPage :
{code}
    for (int i = 0; i < data.length; i++) {
      long offset = i << floatBits;
{code}
The shift expression with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic.
But the variable offset is of type long.

There are a few other shift expressions of this nature.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)