]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed DbCellHeader sanity check: Payload may occupy all space after the header.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Aug 2013 22:15:21 +0000 (16:15 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 15 Aug 2013 22:15:21 +0000 (16:15 -0600)
src/fs/rock/RockDbCell.h

index c58c514649d0dcb6febdc947087e0953a9cd445f..18402f21ac36febddb9868c0e5d371678e1ddcd8 100644 (file)
@@ -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