summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgdir.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-22 09:24:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-22 16:12:15 +0000
commit786573068dce1f71c53057f98b5822c401c9f3ff (patch)
tree0288ead6e1c55d572e1666962401901798ed89ca /sot/source/sdstor/stgdir.hxx
parent26e6d4b05ab444e6a7529ffcac7fbe592fc94833 (diff)
limit storage entry max size to size of underlying stream
Change-Id: Ie3772338009c07fea40b637621b1170863830e14 Reviewed-on: https://gerrit.libreoffice.org/17296 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sot/source/sdstor/stgdir.hxx')
-rw-r--r--sot/source/sdstor/stgdir.hxx3
1 files changed, 2 insertions, 1 deletions
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();