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
775bf0c7
Kaydet (Commit)
775bf0c7
authored
Şub 10, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test coverity sanitizing in-source modelling
Change-Id: I31b1f021c414b26372c07a28c235bedb3e5a2b32
üst
f9b32576
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
reflread.cxx
registry/source/reflread.cxx
+7
-0
unoidlprovider.cxx
unoidl/source/unoidlprovider.cxx
+7
-0
No files found.
registry/source/reflread.cxx
Dosyayı görüntüle @
775bf0c7
...
...
@@ -1020,6 +1020,10 @@ RTParamMode MethodList::getMethodParamMode(sal_uInt16 index, sal_uInt16 paramInd
return
aMode
;
}
#if defined(__COVERITY__)
extern
"C"
void
__coverity_tainted_data_sanitize__
(
void
*
);
#endif
sal_uInt16
MethodList
::
getMethodExcCount
(
sal_uInt16
index
)
{
sal_uInt16
aCount
=
0
;
...
...
@@ -1028,6 +1032,9 @@ sal_uInt16 MethodList::getMethodExcCount(sal_uInt16 index)
{
try
{
aCount
=
readUINT16
(
m_pIndex
[
index
]
+
calcMethodParamIndex
(
readUINT16
(
m_pIndex
[
index
]
+
METHOD_OFFSET_PARAM_COUNT
)));
#if defined(__COVERITY__)
__coverity_tainted_data_sanitize__
(
&
aCount
);
#endif
}
catch
(
BlopObject
::
BoundsError
&
)
{
SAL_WARN
(
"registry"
,
"bad data"
);
}
...
...
unoidl/source/unoidlprovider.cxx
Dosyayı görüntüle @
775bf0c7
...
...
@@ -531,6 +531,10 @@ sal_uInt32 findInMap(
return
off
;
}
#if defined(__COVERITY__)
extern
"C"
void
__coverity_tainted_data_sanitize__
(
void
*
);
#endif
std
::
vector
<
OUString
>
readAnnotations
(
bool
annotated
,
rtl
::
Reference
<
MappedFile
>
const
&
file
,
sal_uInt32
offset
,
sal_uInt32
*
newOffset
=
nullptr
)
...
...
@@ -538,6 +542,9 @@ std::vector< OUString > readAnnotations(
std
::
vector
<
OUString
>
ans
;
if
(
annotated
)
{
sal_uInt32
n
=
file
->
read32
(
offset
);
#if defined(__COVERITY__)
__coverity_tainted_data_sanitize__
(
&
n
);
#endif
offset
+=
4
;
for
(
sal_uInt32
i
=
0
;
i
!=
n
;
++
i
)
{
ans
.
push_back
(
file
->
readIdxString
(
&
offset
));
...
...
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