giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maja Kabiljo (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GIRAPH-1075) UnsafeByteArrayOutputStream silently writes long UTFs incorrectly
Date Thu, 23 Jun 2016 15:46:16 GMT

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

Maja Kabiljo resolved GIRAPH-1075.
----------------------------------
    Resolution: Fixed

> 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)

Mime
View raw message