[
https://issues.apache.org/jira/browse/GIRAPH-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870314#comment-13870314
]
Michael Dong commented on GIRAPH-724:
-------------------------------------
I've verified that both writeUTF and writeChars throw IndexOutOfBoundsException
without the fix. I'm adding updated test cases to verify that the buffer
content after the change remains correct.
> 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)