You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "zhengdong (JIRA)" <ji...@apache.org> on 2017/08/23 11:10:00 UTC
[jira] [Commented] (KYLIN-2804) Unchecked return value from
Input#read() in PercentileCounterSerializer
[ https://issues.apache.org/jira/browse/KYLIN-2804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16138226#comment-16138226 ]
zhengdong commented on KYLIN-2804:
----------------------------------
Hi Ted Yu, may you explain why the length of data read from input could mismatch with declared data length? It seems scarcely possible data length unequal to the preset length.
> Unchecked return value from Input#read() in PercentileCounterSerializer
> -----------------------------------------------------------------------
>
> Key: KYLIN-2804
> URL: https://issues.apache.org/jira/browse/KYLIN-2804
> Project: Kylin
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: zhengdong
> Priority: Minor
>
> {code}
> byte[] buffer = new byte[length];
> input.read(buffer);
> {code}
> length bytes are allocated.
> The return value from read() should be checked against length.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)