Maryann Xue created PHOENIX-1686:
------------------------------------
Summary: Data length should be checked in KeyValueSchema.next()
and maxOffset should be set correctly by the caller
Key: PHOENIX-1686
URL: https://issues.apache.org/jira/browse/PHOENIX-1686
Project: Phoenix
Issue Type: Bug
Affects Versions: 4.2
Reporter: Maryann Xue
Priority: Minor
Fix For: 4.3
When decoding values from a KeyValueSchema data object, we should check that
the length specified (either by its type of fixed length or by the length flag)
does not exceed maxOffset.
Meanwhile, maxOffset should not be the total length of the
ImmutableBytesWritable object, but instead should be the total length minus the
length of the tailing valueSetBit.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)