harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3334) [classlib][luni-native] Native Method XXX_transferImpl in luni/src/main/native/luni/unix/OSFileSystemLinux32.c did not handle endian properly
Date Tue, 13 Mar 2007 03:20:09 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480247
] 

Vladimir Ivanov commented on HARMONY-3334:
------------------------------------------

Seems, fix for this issue leads to the tests failure on the x86_64:
http://mail-archives.apache.org/mod_mbox/harmony-dev/200703.mbox/%3c7273946b0703120534v350d1a91sb72a9a9f03834a5e@mail.gmail.com%3e

Could you please, look at it?
 thanks, Vladimir


> [classlib][luni-native] Native Method XXX_transferImpl in luni/src/main/native/luni/unix/OSFileSystemLinux32.c
did not handle endian properly
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3334
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3334
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: spark shen
>         Assigned To: Paulex Yang
>         Attachments: luni_OSFileSystemLinux32_transferImpl.diff
>
>
> The bug is in luni/src/main/native/luni/unix/OSFileSystemLinux32.c, method Java_org_apache_harmony_luni_platform_OSFileSystem_transferImpl.
> Parameter Offset is jlong type. When passed to sendfile, &offset is cast to off_t*.
This will cause a lost of value on big endian machines.
> Since this value is guranteed to be inside scope of integer, we cast it to int before
passing to sendfile to overcome this problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message