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
28a6558f
Kaydet (Commit)
28a6558f
authored
Şub 04, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
extract max legal dff length to header
üst
dc35a397
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
msdffimp.cxx
filter/source/msfilter/msdffimp.cxx
+3
-3
msdffdef.hxx
svx/inc/svx/msdffdef.hxx
+3
-0
No files found.
filter/source/msfilter/msdffimp.cxx
Dosyayı görüntüle @
28a6558f
...
...
@@ -3422,6 +3422,8 @@ bool SvxMSDffManager::SeekToRec( SvStream& rSt, sal_uInt16 nRecId, sal_uLong nMa
rSt
>>
aHd
;
if
(
!
rSt
.
good
())
break
;
if
(
aHd
.
nRecLen
>
nMaxLegalDffRecordLength
)
break
;
if
(
aHd
.
nRecType
==
nRecId
)
{
if
(
nSkipCount
)
...
...
@@ -6818,8 +6820,6 @@ bool SvxMSDffManager::ReadCommonRecordHeader(DffRecordHeader& rRec,
rRec
.
nRecInstance
,
rRec
.
nRecType
,
rRec
.
nRecLen
);
}
sal_uInt32
nMaxLegalRecordLength
=
SAL_MAX_UINT32
-
DFF_COMMON_RECORD_HEADER_SIZE
;
/* also static */
bool
SvxMSDffManager
::
ReadCommonRecordHeader
(
SvStream
&
rSt
,
sal_uInt8
&
rVer
,
sal_uInt16
&
rInst
,
sal_uInt16
&
rFbt
,
sal_uInt32
&
rLength
)
...
...
@@ -6830,7 +6830,7 @@ bool SvxMSDffManager::ReadCommonRecordHeader(SvStream& rSt,
rInst
=
nTmp
>>
4
;
if
(
!
rSt
.
good
())
return
false
;
if
(
rLength
>
nMaxLegalRecordLength
)
if
(
rLength
>
nMaxLegal
Dff
RecordLength
)
return
false
;
return
true
;
}
...
...
svx/inc/svx/msdffdef.hxx
Dosyayı görüntüle @
28a6558f
...
...
@@ -37,6 +37,9 @@
#define DFF_COMMON_RECORD_HEADER_SIZE 8
const
sal_uInt32
nMaxLegalDffRecordLength
=
\
SAL_MAX_UINT32
-
DFF_COMMON_RECORD_HEADER_SIZE
;
#define DFF_PSFLAG_CONTAINER 0x0F // If the version field of a record
// header takes on this value, the
// record header marks the start of
...
...
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