summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorBartosz Kosiorek <gang65@poczta.onet.pl>2021-06-06 21:32:47 +0200
committerBartosz Kosiorek <gang65@poczta.onet.pl>2021-06-07 13:36:57 +0200
commit6bebaddb39849422dffa16316c543fc69305f31a (patch)
treef93360541b70127aae8268d74464276a73b97ac7 /vcl
parent3ffc5df4e17068319bd6ed0c854d92a702ef326a (diff)
WMF tdf#142625 Continue read records if unimlemented features found
Most of DIB records (DIBCREATEPATTERNBRUSH, STRETCHDIB) are implemented partially. If the unimplemted feature are inside WMF, then the whole reading steam is interrupted and nothing is displayed. With this commit if DIB record used missing feature, then the warning is displayed, and the displaying continue. The fix allows for displaying WMF image from tdf#55058 Change-Id: I6cc88d41486c52a2b1a6ec0b89166460a78ce7d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116763 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/bitmap/dibtools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/dibtools.cxx b/vcl/source/bitmap/dibtools.cxx
index 407deaeb4f9f..17e5c51c88ca 100644
--- a/vcl/source/bitmap/dibtools.cxx
+++ b/vcl/source/bitmap/dibtools.cxx
@@ -1633,7 +1633,7 @@ bool ImplReadDIB(
if(!bRet)
{
- if(!rIStm.GetError())
+ if(!rIStm.GetError()) // Set error and stop processing whole stream due to security reason
{
rIStm.SetError(SVSTREAM_GENERALERROR);
}