[Libreoffice-commits] core.git: filter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Feb 6 19:21:16 UTC 2021
filter/source/graphicfilter/ipict/ipict.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit a838ccb411dfe7ff6edf9503ae23ea655b99e1e6
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Feb 5 21:02:52 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Feb 6 20:20:35 2021 +0100
ofz#30117 OOM
Change-Id: Iaa428f28ba36b21766d9cf2f7c622a179daf0002
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110492
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx
index 43b872f09558..16b5c3f6be6e 100644
--- a/filter/source/graphicfilter/ipict/ipict.cxx
+++ b/filter/source/graphicfilter/ipict/ipict.cxx
@@ -1966,7 +1966,11 @@ void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
else
nPos+=1+nSize;
- pPict->Seek(nPos);
+ if (!checkSeek(*pPict, nPos))
+ {
+ pPict->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ break;
+ }
}
pVirDev->SetClipRegion();
More information about the Libreoffice-commits
mailing list