From: Alex Rousskov Date: Thu, 15 Aug 2013 22:15:21 +0000 (-0600) Subject: Fixed DbCellHeader sanity check: Payload may occupy all space after the header. X-Git-Tag: SQUID_3_5_0_1~444^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe59c232aa1052dcc6b853fa4a744462ed89ead;p=thirdparty%2Fsquid.git Fixed DbCellHeader sanity check: Payload may occupy all space after the header. --- diff --git a/src/fs/rock/RockDbCell.h b/src/fs/rock/RockDbCell.h index c58c514649..18402f21ac 100644 --- a/src/fs/rock/RockDbCell.h +++ b/src/fs/rock/RockDbCell.h @@ -26,7 +26,7 @@ public: 0 <= firstSlot && firstSlot < slotLimit && -1 <= nextSlot && nextSlot < slotLimit && version > 0 && - 0 < payloadSize && payloadSize < slotSize - sizeof(DbCellHeader); } + 0 < payloadSize && payloadSize <= slotSize - sizeof(DbCellHeader); } uint64_t key[2]; ///< StoreEntry key uint64_t entrySize; ///< total entry content size or zero if still unknown