Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 663F5185E4 for ; Wed, 17 Feb 2016 13:43:18 +0000 (UTC) Received: (qmail 76536 invoked by uid 500); 17 Feb 2016 13:43:18 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 76458 invoked by uid 500); 17 Feb 2016 13:43:18 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 76431 invoked by uid 99); 17 Feb 2016 13:43:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 13:43:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2D2462C14F4 for ; Wed, 17 Feb 2016 13:43:18 +0000 (UTC) Date: Wed, 17 Feb 2016 13:43:18 +0000 (UTC) From: "Chesnay Schepler (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (FLINK-3433) Return value from ObjectInputStream#read() should be checked in AvroOutputFormat#readObject MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-3433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chesnay Schepler reassigned FLINK-3433: --------------------------------------- Assignee: Chesnay Schepler > 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)