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
eb6d2732
Kaydet (Commit)
eb6d2732
authored
Kas 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
afl: divide-by-zero
Change-Id: Ided311873f654c0f40dae57c8876a6412ee97d3e
üst
6ca5cc5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
afl-divide-zero-1.met
filter/qa/cppunit/data/met/fail/afl-divide-zero-1.met
+0
-0
ios2met.cxx
filter/source/graphicfilter/ios2met/ios2met.cxx
+8
-1
No files found.
filter/qa/cppunit/data/met/fail/afl-divide-zero-1.met
0 → 100644
Dosyayı görüntüle @
eb6d2732
File added
filter/source/graphicfilter/ios2met/ios2met.cxx
Dosyayı görüntüle @
eb6d2732
...
@@ -2357,7 +2357,14 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize)
...
@@ -2357,7 +2357,14 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize)
pOS2MET
->
SeekRel
(
4
);
pOS2MET
->
SeekRel
(
4
);
nStartIndex
=
ReadBigEndianWord
();
nStartIndex
=
ReadBigEndianWord
();
pOS2MET
->
SeekRel
(
3
);
pOS2MET
->
SeekRel
(
3
);
pOS2MET
->
ReadUChar
(
nbyte
);
nBytesPerCol
=
((
sal_uInt16
)
nbyte
)
&
0x00ff
;
pOS2MET
->
ReadUChar
(
nbyte
);
nBytesPerCol
=
((
sal_uInt16
)
nbyte
)
&
0x00ff
;
if
(
nBytesPerCol
==
0
)
{
pOS2MET
->
SetError
(
SVSTREAM_FILEFORMAT_ERROR
);
ErrorCode
=
4
;
break
;
}
nEndIndex
=
nStartIndex
+
(
nElemLen
-
11
)
/
nBytesPerCol
;
nEndIndex
=
nStartIndex
+
(
nElemLen
-
11
)
/
nBytesPerCol
;
for
(
i
=
nStartIndex
;
i
<
nEndIndex
;
i
++
)
{
for
(
i
=
nStartIndex
;
i
<
nEndIndex
;
i
++
)
{
if
(
nBytesPerCol
>
3
)
pOS2MET
->
SeekRel
(
nBytesPerCol
-
3
);
if
(
nBytesPerCol
>
3
)
pOS2MET
->
SeekRel
(
nBytesPerCol
-
3
);
...
...
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