summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-04 21:13:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-05 10:11:29 +0100
commit0722363c2b8e5a15397233fb21537508780d9585 (patch)
treea3dded4965751804d312a9aae48b5f02e7a679b8 /starmath
parentUpdated core (diff)
downloadcore-0722363c2b8e5a15397233fb21537508780d9585.tar.gz
core-0722363c2b8e5a15397233fb21537508780d9585.zip
ofz: infinite loop
Change-Id: Ie2148fd0048c6894e1b317dd2a4f2533ff2e1814 Reviewed-on: https://gerrit.libreoffice.org/45827 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathtype.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 000d5878ed5b..e055cd951ee2 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -2749,6 +2749,8 @@ void MathType::HandleEmblishments()
do
{
pS->ReadUChar( nEmbel );
+ if (!pS->good())
+ break;
switch (nEmbel)
{
case 0x02: