GitHub user ryzuo opened a pull request:
https://github.com/apache/incubator-trafodion/pull/486
[TRAFODION-1853] Fix overflow of long type bit wise shifting in T4
LogicalByteArray
Both extractLong() methods of LogicalByteArray and Bytes classes are using
bit wise shifting to extract the long value from byte array, but larger then 32
bit wise shifting will overflow. Change to use java.nio.ByteBuffer to construct
and convert the long value from the source byte array.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ryzuo/incubator-trafodion jira1853
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/486.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 #486
----
commit 04e22e5ecfc018d1d19d385efb88e89114c12039
Author: ryzuo <[email protected]>
Date: 2016-05-17T02:56:29Z
Fix JIRA1853
Use ByteBuffer to construct and convert the long value from
the source byte array.
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---