diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-04 21:13:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-05 10:11:29 +0100 |
commit | 0722363c2b8e5a15397233fb21537508780d9585 (patch) | |
tree | a3dded4965751804d312a9aae48b5f02e7a679b8 /starmath | |
parent | 0af17d7e3744acdbe0bb812e1b97d4cde3e67782 (diff) |
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.cxx | 2 |
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: |