Skip to content

Commit

Permalink
fixed #410 crash at RT index on commit of document with large docid
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatolog committed Aug 28, 2018
1 parent bc251ed commit bd8b3c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sphinxrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ struct RtDocWriter_t
void ZipDoc ( const RtDoc_t & tDoc )
{
CSphTightVector<BYTE> * pDocs = m_pDocs;
BYTE * pEnd = pDocs->AddN ( 5*sizeof(DWORD) );
BYTE * pEnd = pDocs->AddN ( 12*sizeof(DWORD) );
const BYTE * pBegin = pDocs->Begin();

ZipDocid ( pEnd, tDoc.m_uDocID - m_uLastDocID );
Expand Down Expand Up @@ -650,7 +650,7 @@ struct RtWordWriter_t
m_tLastKeyword.PutDelta ( *this, tWord.m_sWord+1, tWord.m_sWord[0] );
}

BYTE * pEnd = pWords->AddN ( 3*sizeof(DWORD) );
BYTE * pEnd = pWords->AddN ( 4*sizeof(DWORD) );
const BYTE * pBegin = pWords->Begin();

ZipDword ( pEnd, tWord.m_uDocs );
Expand Down

0 comments on commit bd8b3c9

Please sign in to comment.