diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-05 21:02:52 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-02-08 14:58:07 +0100 |
commit | 9a06536cc595d3ed82bfd1d3c11e87c1d82710c3 (patch) | |
tree | aa8f2b7a8d653ab0d7822fc79eba6c5b0f446d45 /filter | |
parent | 5031a2932e9146db8b163ecfcaaf29e59cc4cc9d (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110513
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'filter')
-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(); |