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
159ea0e0
Kaydet (Commit)
159ea0e0
authored
Eki 15, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1242719 Untrusted value as argument
Change-Id: I444233dcf0a1e5e3792089be605b340b24882c89
üst
e178c45a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ww8scan.cxx
sw/source/filter/ww8/ww8scan.cxx
+11
-2
No files found.
sw/source/filter/ww8/ww8scan.cxx
Dosyayı görüntüle @
159ea0e0
...
...
@@ -2565,12 +2565,21 @@ WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(ww::WordVersion eVersion, SvStream* pSt,
{
sal_uInt32
nCurr
=
pDataSt
->
Tell
();
sal_uInt32
nPos
=
SVBT32ToUInt32
(
aEntry
.
mpData
+
2
);
if
(
checkSeek
(
*
pDataSt
,
nPos
))
sal_uInt16
nLen
(
0
);
bool
bOk
=
checkSeek
(
*
pDataSt
,
nPos
);
if
(
bOk
)
{
pDataSt
->
ReadUInt16
(
nLen
);
bOk
=
nLen
<=
pDataSt
->
remainingSize
();
}
if
(
bOk
)
{
const
sal_uInt16
nOrigLen
=
bExpand
?
aEntry
.
mnLen
:
0
;
sal_uInt8
*
pOrigData
=
bExpand
?
aEntry
.
mpData
:
0
;
pDataSt
->
ReadUInt16
(
aEntry
.
mnLen
)
;
aEntry
.
mnLen
=
nLen
;
aEntry
.
mpData
=
new
sal_uInt8
[
aEntry
.
mnLen
+
nOrigLen
];
aEntry
.
mbMustDelete
=
true
;
...
...
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