[
https://issues.apache.org/jira/browse/GIRAPH-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870158#comment-13870158
]
Maja Kabiljo commented on GIRAPH-724:
-------------------------------------
Thanks for taking this and adding the test, Michael! Can you do 'write -> read
-> verify you got the same thing back' in the test, instead of checking the
lengths like this? (since this check relies on implementation itself and not
the functionality which class is supposed to provide) Please verify that the
test doesn't work without your change, or if it does find an example for which
it doesn't, just so we know it's really fixed.
> 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
>
>
> 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)