You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/03/12 06:44:09 UTC

[jira] Resolved: (HARMONY-3334) [classlib][luni-native] Native Method XXX_transferImpl in luni/src/main/native/luni/unix/OSFileSystemLinux32.c did not handle endian properly

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

Paulex Yang resolved HARMONY-3334.
----------------------------------

    Resolution: Fixed

Spark, patch applied at revision r517104, please verify the issue is resolved as you expected, thank you.

> [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.