You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (JIRA)" <ji...@apache.org> on 2016/02/23 15:25:18 UTC

[jira] [Resolved] (FLINK-3433) Return value from ObjectInputStream#read() should be checked in AvroOutputFormat#readObject

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

Till Rohrmann resolved FLINK-3433.
----------------------------------
    Resolution: Fixed

Fixed via 77c1deedd859fed99970e27a6885856275ae23a9

> 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
>            Assignee: Chesnay Schepler
>            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)