diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-05 21:02:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-06 20:20:35 +0100 |
commit | a838ccb411dfe7ff6edf9503ae23ea655b99e1e6 (patch) | |
tree | 6450aed9bf411c113ae3a545720f861c7dc19a48 | |
parent | 51ecbd06bdef5d9c0738703f16160799f261c860 (diff) |
ofz#30117 OOM
Change-Id: Iaa428f28ba36b21766d9cf2f7c622a179daf0002
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110492
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | filter/source/graphicfilter/ipict/ipict.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |