Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8e5fe8dc
Kaydet (Commit)
8e5fe8dc
authored
Ara 18, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid infinite loop when parsing malformed ooxml math (fdo#57886)
Change-Id: I2f66bc335795a9e84f532fb28d3585aed783ebd6
üst
015bcb08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ooxmlimport.cxx
starmath/source/ooxmlimport.cxx
+4
-4
ooxmlimport.hxx
starmath/source/ooxmlimport.hxx
+1
-1
No files found.
starmath/source/ooxmlimport.cxx
Dosyayı görüntüle @
8e5fe8dc
...
...
@@ -69,7 +69,7 @@ OUString SmOoxmlImport::handleStream()
{
// strictly speaking, it is not OMathArg here, but currently supported
// functionality is the same like OMathArg, in the future this may need improving
OUString
item
=
readOMathArg
();
OUString
item
=
readOMathArg
(
M_TOKEN
(
oMath
)
);
if
(
item
.
isEmpty
())
continue
;
if
(
!
ret
.
isEmpty
())
...
...
@@ -87,10 +87,10 @@ OUString SmOoxmlImport::handleStream()
return
ret
;
}
OUString
SmOoxmlImport
::
readOMathArg
()
OUString
SmOoxmlImport
::
readOMathArg
(
int
stoptoken
)
{
OUString
ret
;
while
(
!
stream
.
atEnd
()
&&
stream
.
currentToken
()
!=
CLOSING
(
st
ream
.
currentToken
()
))
while
(
!
stream
.
atEnd
()
&&
stream
.
currentToken
()
!=
CLOSING
(
st
optoken
))
{
if
(
!
ret
.
isEmpty
())
ret
+=
" "
;
...
...
@@ -164,7 +164,7 @@ OUString SmOoxmlImport::readOMathArg()
OUString
SmOoxmlImport
::
readOMathArgInElement
(
int
token
)
{
stream
.
ensureOpeningTag
(
token
);
OUString
ret
=
readOMathArg
();
OUString
ret
=
readOMathArg
(
token
);
stream
.
ensureClosingTag
(
token
);
return
ret
;
}
...
...
starmath/source/ooxmlimport.hxx
Dosyayı görüntüle @
8e5fe8dc
...
...
@@ -63,7 +63,7 @@ private:
OUString
handleSsub
();
OUString
handleSsubsup
();
OUString
handleSsup
();
OUString
readOMathArg
();
OUString
readOMathArg
(
int
stoptoken
);
OUString
readOMathArgInElement
(
int
token
);
oox
::
formulaimport
::
XmlStream
&
stream
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment