starmath/source/mathtype.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0722363c2b8e5a15397233fb21537508780d9585
Author: Caolán McNamara <[email protected]>
Date: Mon Dec 4 21:13:26 2017 +0000
ofz: infinite loop
Change-Id: Ie2148fd0048c6894e1b317dd2a4f2533ff2e1814
Reviewed-on: https://gerrit.libreoffice.org/45827
Tested-by: Jenkins <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
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:
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits