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
6118c11a
Kaydet (Commit)
6118c11a
authored
Eki 17, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242582 Untrusted loop bound
Change-Id: I72d2c4979b62a025d212ce5ee3b7141c40376fa7
üst
0445a0ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
ios2met.cxx
filter/source/graphicfilter/ios2met/ios2met.cxx
+12
-4
No files found.
filter/source/graphicfilter/ios2met/ios2met.cxx
Dosyayı görüntüle @
6118c11a
...
@@ -1012,6 +1012,8 @@ void OS2METReader::ReadChrStr(bool bGivenPos, bool bMove, bool bExtra, sal_uInt1
...
@@ -1012,6 +1012,8 @@ void OS2METReader::ReadChrStr(bool bGivenPos, bool bMove, bool bExtra, sal_uInt1
else
else
nLen
=
nOrderLen
-
4
;
nLen
=
nOrderLen
-
4
;
}
}
if
(
nLen
>
pOS2MET
->
remainingSize
())
throw
css
::
uno
::
Exception
(
"attempt to read past end of input"
,
0
);
boost
::
scoped_array
<
char
>
pChr
(
new
char
[
nLen
+
1
]);
boost
::
scoped_array
<
char
>
pChr
(
new
char
[
nLen
+
1
]);
for
(
i
=
0
;
i
<
nLen
;
i
++
)
for
(
i
=
0
;
i
<
nLen
;
i
++
)
pOS2MET
->
ReadChar
(
pChr
[
i
]
);
pOS2MET
->
ReadChar
(
pChr
[
i
]
);
...
@@ -2752,12 +2754,18 @@ GraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
...
@@ -2752,12 +2754,18 @@ GraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
GDIMetaFile
aMTF
;
GDIMetaFile
aMTF
;
bool
bRet
=
false
;
bool
bRet
=
false
;
aOS2METReader
.
ReadOS2MET
(
rStream
,
aMTF
);
try
{
aOS2METReader
.
ReadOS2MET
(
rStream
,
aMTF
);
if
(
!
rStream
.
GetError
()
)
if
(
!
rStream
.
GetError
()
)
{
rGraphic
=
Graphic
(
aMTF
);
bRet
=
true
;
}
}
catch
(
const
css
::
uno
::
Exception
&
)
{
{
rGraphic
=
Graphic
(
aMTF
);
bRet
=
true
;
}
}
return
bRet
;
return
bRet
;
...
...
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