[ 
https://issues.apache.org/jira/browse/GIRAPH-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13872736#comment-13872736
 ] 

Greg Jensen commented on GIRAPH-724:
------------------------------------

Maja,
   I had found this same bug a couple of weeks ago and was working on the 
patch.I'll attach the unit tests I was working on.  It was still a work in 
progress, but I hope you find it useful. 

> 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, 
> GIRAPH-724.patch, greg.jensen.testUnsafe.java
>
>
> 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)

Reply via email to