You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by "Maja Kabiljo (JIRA)" <ji...@apache.org> on 2016/06/17 19:23:05 UTC

[jira] [Created] (GIRAPH-1075) UnsafeByteArrayOutputStream silently writes long UTFs incorrectly

Maja Kabiljo created GIRAPH-1075:
------------------------------------

             Summary: UnsafeByteArrayOutputStream silently writes long UTFs incorrectly
                 Key: GIRAPH-1075
                 URL: https://issues.apache.org/jira/browse/GIRAPH-1075
             Project: Giraph
          Issue Type: Bug
            Reporter: Maja Kabiljo
            Assignee: Maja Kabiljo


UnsafeByteArrayOutputStream.writeUTF was copied from DataOutputStream, but part which checks the length was missed out. When we try to write long strings they serialize without an issue, but when we try to deserialize them we get a wrong value back and don't read the same number of bytes. Make it fail like DataOutputStream instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)