From 786573068dce1f71c53057f98b5822c401c9f3ff Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 22 Jul 2015 09:24:53 +0100 Subject: limit storage entry max size to size of underlying stream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie3772338009c07fea40b637621b1170863830e14 Reviewed-on: https://gerrit.libreoffice.org/17296 Reviewed-by: Michael Meeks Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sot/source/sdstor/stgdir.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sot/source/sdstor/stgdir.hxx') diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx index c0924f1bf3af..55be53d8d359 100644 --- a/sot/source/sdstor/stgdir.hxx +++ b/sot/source/sdstor/stgdir.hxx @@ -62,7 +62,8 @@ public: bool bDirect; // true: direct mode bool bZombie; // true: Removed From StgIo bool bInvalid; // true: invalid entry - StgDirEntry( const void* pBuffer, sal_uInt32 nBufferLen, bool * pbOk ); + StgDirEntry(const void* pBuffer, sal_uInt32 nBufferLen, + sal_uInt64 nUnderlyingStreamSize, bool * pbOk); StgDirEntry( const StgEntry& ); virtual ~StgDirEntry(); -- cgit