giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dong (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GIRAPH-724) UnsafeByteArrayOutputStream.writeUTF should call ensureSize
Date Tue, 14 Jan 2014 21:43:21 GMT

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

Michael Dong updated GIRAPH-724:
--------------------------------

    Attachment: GIRAPH-724.patch

- Use UnsafeByteArrayInputStream to test UnsafeByteArrayOutputStream
- Fix writeBytes, writeChars and writeUTF to use sun.misc.Unsafe

> UnsafeByteArrayOutputStream.writeUTF should call ensureSize
> -----------------------------------------------------------
>
>                 Key: GIRAPH-724
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-724
>             Project: Giraph
>          Issue Type: Bug
>            Reporter: Maja Kabiljo
>         Attachments: GIRAPH-724.patch, GIRAPH-724.patch, GIRAPH-724.patch
>
>
> UnsafeByteArrayOutputStream.writeUTF can throw an exception if the String doesn't fit
in current byte array because ensureSize is not called.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message