[
https://issues.apache.org/jira/browse/HDFS-9320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haohui Mai updated HDFS-9320:
-----------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Fix Version/s: HDFS-8707
Status: Resolved (was: Patch Available)
I've committed the patch to the HDFS-8707 branch. Thanks [~James Clampffer] for
the contribution.
> libhdfspp should use sizeof(int32_t) instead of sizeof(int) when parsing data
> -----------------------------------------------------------------------------
>
> Key: HDFS-9320
> URL: https://issues.apache.org/jira/browse/HDFS-9320
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: Bob Hansen
> Assignee: James Clampffer
> Fix For: HDFS-8707
>
> Attachments: HDFS-9320.HDFS-8707.000.patch,
> HDFS-9320.HDFS-8707.001.patch, HDFS-9320.HDFS-8707.002.patch
>
>
> In a few places, we're using sizeof(int) and sizeof(short) to determine where
> in the received buffers we should be looking for data. Those values are
> compiler- and platform-dependent. We should use specified sizes, or at least
> sizeof(int32_t).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)