VarDerefBytesImpl doc values prefix length may fall across two pages
--------------------------------------------------------------------
Key: LUCENE-3870
URL: https://issues.apache.org/jira/browse/LUCENE-3870
Project: Lucene - Java
Issue Type: Bug
Affects Versions: 4.0
Reporter: Michael McCandless
Fix For: 4.0
The VarDerefBytesImpl doc values encodes the unique byte[] with prefix (1 or 2 bytes) first,
followed by bytes, so that it can use PagedBytes.fillSliceWithPrefix.
It does this itself rather than using PagedBytes.copyUsingLengthPrefix...
The problem is, it can write an invalid 2 byte prefix spanning two blocks (ie, last byte of
block N and first byte of block N+1), which fillSliceWithPrefix won't decode correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
|