[ https://issues.apache.org/jira/browse/HBASE-19431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16278097#comment-16278097 ]
stack commented on HBASE-19431: ------------------------------- +1 > The tag array written by IndividualBytesFieldCell#write is out of bounds > ------------------------------------------------------------------------ > > Key: HBASE-19431 > URL: https://issues.apache.org/jira/browse/HBASE-19431 > Project: HBase > Issue Type: Bug > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Priority: Critical > Fix For: 2.0.0-beta-1 > > Attachments: HBASE-19431.v0.patch > > > {code:title=IndividualBytesFieldCell.java} > @Override > public int write(OutputStream out, boolean withTags) throws IOException { > // Key length and then value length > ByteBufferUtils.putInt(out, KeyValueUtil.keyLength(this)); > ByteBufferUtils.putInt(out, getValueLength()); > // Key > PrivateCellUtil.writeFlatKey(this, out); > // Value > out.write(getValueArray()); > // Tags length and tags byte array > if (withTags && getTagsLength() > 0) { > // Tags length > out.write((byte)(0xff & (getTagsLength() >> 8))); > out.write((byte)(0xff & getTagsLength())); > // Tags byte array > out.write(tags); // here > } > return getSerializedSize(withTags); > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)