[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Sun Jan 22 21:47:46 UTC 2017
vcl/source/filter/sgfbram.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit d608a304ecd3be4481632dbad091279abcf07a02
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Jan 22 21:46:47 2017 +0000
return early on not good
Change-Id: I4aca6cb1c3dae652595b93ff7507db713a668d5f
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx
index 20afdf0..ed2a961 100644
--- a/vcl/source/filter/sgfbram.cxx
+++ b/vcl/source/filter/sgfbram.cxx
@@ -323,6 +323,8 @@ bool SgfBMapFilter(SvStream& rInp, SvStream& rOut)
nFileStart=rInp.Tell();
ReadSgfHeader( rInp, aHead );
+ if (!rIStream.good())
+ return false;
if (aHead.ChkMagic() && (aHead.Typ==SgfBitImag0 || aHead.Typ==SgfBitImag1 ||
aHead.Typ==SgfBitImag2 || aHead.Typ==SgfBitImgMo))
{
More information about the Libreoffice-commits
mailing list