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-3433) Return value from ObjectInputStream#read() should be checked in AvroOutputFormat#readObject
Date Wed, 17 Feb 2016 13:31:18 GMT
Ted Yu created FLINK-3433:
-----------------------------

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


Here is related code:
{code}
    if(length != 0) {
      byte[] json = new byte[length];
      in.read(json);

      Schema schema = new Schema.Parser().parse(new String(json));
{code}
The return value from in.read() should be verified against length.



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

Mime
View raw message