You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/01/20 20:21:39 UTC

[jira] [Created] (FLINK-3269) Return value from DataInputStream#read() should be checked in PythonPlanReceiver

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)