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
78bcc5dd
Kaydet (Commit)
78bcc5dd
authored
Kas 10, 2017
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ofz#4123 do not read past end of file
Change-Id: I1fa3543d541ea084a43a1a11f62680fa798f5647
üst
1aba1955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
formel.hxx
sc/source/filter/inc/formel.hxx
+25
-5
No files found.
sc/source/filter/inc/formel.hxx
Dosyayı görüntüle @
78bcc5dd
...
...
@@ -143,31 +143,51 @@ inline void LotusConverterBase::Ignore( const long nSeekRel )
inline
void
LotusConverterBase
::
Read
(
sal_uInt8
&
nByte
)
{
aIn
.
ReadUChar
(
nByte
);
nBytesLeft
--
;
if
(
aIn
.
good
())
nBytesLeft
--
;
else
{
// SvStream::ReadUChar() does not init a single char on failure. This
// behaviour is even tested in a unit test.
nByte
=
0
;
nBytesLeft
=
-
1
;
// bail out early
}
}
inline
void
LotusConverterBase
::
Read
(
sal_uInt16
&
nUINT16
)
{
aIn
.
ReadUInt16
(
nUINT16
);
nBytesLeft
-=
2
;
if
(
aIn
.
good
())
nBytesLeft
-=
2
;
else
nBytesLeft
=
-
1
;
// bail out early
}
inline
void
LotusConverterBase
::
Read
(
sal_Int16
&
nINT16
)
{
aIn
.
ReadInt16
(
nINT16
);
nBytesLeft
-=
2
;
if
(
aIn
.
good
())
nBytesLeft
-=
2
;
else
nBytesLeft
=
-
1
;
// bail out early
}
inline
void
LotusConverterBase
::
Read
(
double
&
fDouble
)
{
aIn
.
ReadDouble
(
fDouble
);
nBytesLeft
-=
8
;
if
(
aIn
.
good
())
nBytesLeft
-=
8
;
else
nBytesLeft
=
-
1
;
// bail out early
}
inline
void
LotusConverterBase
::
Read
(
sal_uInt32
&
nUINT32
)
{
aIn
.
ReadUInt32
(
nUINT32
);
nBytesLeft
-=
4
;
if
(
aIn
.
good
())
nBytesLeft
-=
4
;
else
nBytesLeft
=
-
1
;
// bail out early
}
#endif
...
...
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