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
2546ca9d
Kaydet (Commit)
2546ca9d
authored
Eyl 13, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1372879 Integer overflowed argument
Change-Id: I9e5115a00781d07c9c57e39854d6e1482bd02795
üst
5aaf4d89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
lwpgrfobj.cxx
lotuswordpro/source/filter/lwpgrfobj.cxx
+9
-3
No files found.
lotuswordpro/source/filter/lwpgrfobj.cxx
Dosyayı görüntüle @
2546ca9d
...
...
@@ -680,17 +680,23 @@ void LwpGraphicObject::XFConvertEquation(XFContentContainer * pCont)
// 18,12,0,0,0,0,0.
// .TCIformat{2}
//total head length = 45
bool
bOk
=
true
;
sal_uInt32
nBegin
=
45
;
sal_uInt32
nEnd
=
nDataLen
-
1
;
sal_uInt32
nEnd
=
0
;
if
(
nDataLen
>=
1
)
nEnd
=
nDataLen
-
1
;
else
bOk
=
false
;
if
(
pGrafData
[
nEnd
]
==
'$'
&&
pGrafData
[
nEnd
-
1
]
!=
'\\'
)
if
(
bOk
&&
pGrafData
[
nEnd
]
==
'$'
&&
nEnd
>
0
&&
pGrafData
[
nEnd
-
1
]
!=
'\\'
)
{
//equation body is contained by '$';
nBegin
++
;
nEnd
--
;
}
if
(
nEnd
>=
nBegin
)
bOk
&=
nEnd
>=
nBegin
;
if
(
bOk
)
{
sal_uInt8
*
pEquData
=
new
sal_uInt8
[
nEnd
-
nBegin
+
1
];
for
(
sal_uInt32
nIndex
=
0
;
nIndex
<
nEnd
-
nBegin
+
1
;
nIndex
++
)
...
...
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