deps/unrar/rawread.cpp
// Return a number of bytes in current variable length integer.
Return a number of bytes in current variable length integer.
Return a number of bytes in current variable length integer .
uint RawRead::GetVSize(size_t Pos)
{
  for (size_t CurPos=Pos;CurPos<DataSize;CurPos++)
    if ((Data[CurPos] & 0x80)==0)
      return int(CurPos-Pos+1);
  return 0; 
}
uint RawRead :: GetVSize ( size_t Pos ) { for ( size_t CurPos = Pos ; CurPos < DataSize ; CurPos ++ ) if ( ( Data [ CurPos ] & 0x80 ) == 0 ) return int ( CurPos - Pos + 1 ) ; return 0 ; }
Return a number of bytes in current variable length integer.
Return a number of bytes in current variable length integer .
// Buffer overflow.