flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-3269) Return value from DataInputStream#read() should be checked in PythonPlanReceiver
Date Wed, 20 Jan 2016 19:21:39 GMT
Ted Yu created FLINK-3269:
-----------------------------

             Summary: Return value from DataInputStream#read() should be checked in PythonPlanReceiver
                 Key: FLINK-3269
                 URL: https://issues.apache.org/jira/browse/FLINK-3269
             Project: Flink
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


There're several places where the return value from DataInputStream#read() isn't checked.
Here is an example from BytesDeserializer :
{code}
      byte[] buffer = new byte[size];
      input.read(buffer);
      return buffer;
{code}
Buffer of size bytes is allocated.
However, the read operation may not fill size bytes.

The return value should be checked.



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

Mime
View raw message