Changeset 6447 for trunk/licq

Show
Ignore:
Timestamp:
07/12/08 08:32:28 (4 months ago)
Author:
emostar
Message:

fix a boundary error that caused an ending zero-length tlv to not be read

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/buffer.cpp

    r6181 r6447  
    637637 
    638638  // Keep reading until it is impossible for any TLV headers to be found 
    639   while(getDataPosRead() + 4 < (getDataStart() + getDataSize())) { 
     639  while(getDataPosRead() + 4 <= (getDataStart() + getDataSize())) { 
    640640    TLVPtr tlv(new COscarTLV); 
    641641