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
4530406b
Kaydet (Commit)
4530406b
authored
Nis 18, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#705533 Unintentional integer overflow
Change-Id: I24a9310471bdcfc91080382b3c637982788e68d7
üst
dfeadd06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
eos2met.cxx
filter/source/graphicfilter/eos2met/eos2met.cxx
+26
-26
No files found.
filter/source/graphicfilter/eos2met/eos2met.cxx
Dosyayı görüntüle @
4530406b
...
...
@@ -124,14 +124,14 @@ class METWriter
{
private
:
sal_Bool
bStatus
;
sal_u
Long
nLastPercent
;
// with which number pCallback has been called the last time
sal_Bool
bStatus
;
sal_u
Int32
nLastPercent
;
// with which number pCallback has been called the last time
SvStream
*
pMET
;
Rectangle
aPictureRect
;
MapMode
aPictureMapMode
;
MapMode
aTargetMapMode
;
sal_u
Long
nActualFieldStartPos
;
// start position of the current 'Field'
sal_u
Long
nNumberOfDataFields
;
// number of commenced 'Graphcis Data Fields'
sal_u
Int32
nActualFieldStartPos
;
// start position of the current 'Field'
sal_u
Int32
nNumberOfDataFields
;
// number of commenced 'Graphcis Data Fields'
Color
aGDILineColor
;
Color
aGDIFillColor
;
RasterOp
eGDIRasterOp
;
...
...
@@ -146,15 +146,15 @@ private:
long
nMETStrokeLineWidth
;
Size
aMETChrCellSize
;
short
nMETChrAngle
;
sal_uInt8
nMETChrSet
;
sal_uInt8
nMETChrSet
;
METChrSet
*
pChrSetList
;
// list of Character-Sets
sal_uInt8
nNextChrSetId
;
// the first unused ChrSet-Id
sal_u
Long
nActBitmapId
;
// Field-Id of the next Bitmap
sal_u
Long
nNumberOfActions
;
// number of Actions in the GDIMetafile
sal_u
Long
nNumberOfBitmaps
;
// number of Bitmaps
sal_u
Long
nWrittenActions
;
// number of already processed actions during the writing of the orders
sal_u
Long
nWrittenBitmaps
;
// number of already written Bitmaps
sal_u
Long
nActBitmapPercent
;
// percentage of the next bitmap that's already written
sal_uInt8
nNextChrSetId
;
// the first unused ChrSet-Id
sal_u
Int32
nActBitmapId
;
// Field-Id of the next Bitmap
sal_u
Int32
nNumberOfActions
;
// number of Actions in the GDIMetafile
sal_u
Int32
nNumberOfBitmaps
;
// number of Bitmaps
sal_u
Int32
nWrittenActions
;
// number of already processed actions during the writing of the orders
sal_u
Int32
nWrittenBitmaps
;
// number of already written Bitmaps
sal_u
Int32
nActBitmapPercent
;
// percentage of the next bitmap that's already written
::
std
::
auto_ptr
<
VirtualDevice
>
apDummyVDev
;
OutputDevice
*
pCompDev
;
...
...
@@ -170,7 +170,7 @@ private:
// be set to 0 at the beginning, since this method is recursive)
void
WriteBigEndianShort
(
sal_uInt16
nWord
);
void
WriteBigEndianLong
(
sal_u
Long
nLong
);
void
WriteBigEndianLong
(
sal_u
Int32
nLong
);
void
WritePoint
(
Point
aPt
);
void
WriteClipRect
(
const
Rectangle
&
rRect
);
...
...
@@ -178,14 +178,14 @@ private:
sal_uInt8
nFlags
,
sal_uInt16
nSegSeqNum
);
void
UpdateFieldSize
();
void
WriteFieldId
(
sal_u
Long
nId
);
void
WriteFieldId
(
sal_u
Int32
nId
);
void
CreateChrSets
(
const
GDIMetaFile
*
pMTF
);
void
CreateChrSet
(
const
Font
&
rFont
);
void
WriteChrSets
();
sal_uInt8
FindChrSet
(
const
Font
&
rFont
);
void
WriteColorAttributeTable
(
sal_u
Long
nFieldId
=
4
,
BitmapPalette
*
pPalette
=
NULL
,
void
WriteColorAttributeTable
(
sal_u
Int32
nFieldId
=
4
,
BitmapPalette
*
pPalette
=
NULL
,
sal_uInt8
nBasePartFlags
=
0x40
,
sal_uInt8
nBasePartLCTID
=
0
);
void
WriteImageObject
(
const
Bitmap
&
rBitmap
);
...
...
@@ -193,7 +193,7 @@ private:
void
WriteDataDescriptor
(
const
GDIMetaFile
*
pMTF
);
void
WillWriteOrder
(
sal_u
Long
nNextOrderMaximumLength
);
void
WillWriteOrder
(
sal_u
Int32
nNextOrderMaximumLength
);
void
METSetAndPushLineInfo
(
const
LineInfo
&
rLineInfo
);
void
METPopLineInfo
(
const
LineInfo
&
rLineInfo
);
...
...
@@ -277,7 +277,7 @@ void METWriter::MayCallback()
{
if
(
xStatusIndicator
.
is
()
)
{
sal_u
Long
nPercent
;
sal_u
Int32
nPercent
;
nPercent
=
((
nWrittenBitmaps
<<
14
)
+
(
nActBitmapPercent
<<
14
)
/
100
+
nWrittenActions
)
*
100
/
((
nNumberOfBitmaps
<<
14
)
+
nNumberOfActions
);
...
...
@@ -347,7 +347,7 @@ void METWriter::WriteBigEndianShort(sal_uInt16 nWord)
}
void
METWriter
::
WriteBigEndianLong
(
sal_u
Long
nLong
)
void
METWriter
::
WriteBigEndianLong
(
sal_u
Int32
nLong
)
{
WriteBigEndianShort
((
sal_uInt16
)(
nLong
>>
16
));
WriteBigEndianShort
((
sal_uInt16
)(
nLong
&
0x0000ffff
));
...
...
@@ -374,7 +374,7 @@ void METWriter::WriteFieldIntroducer(sal_uInt16 nFieldSize, sal_uInt16 nFieldTyp
void
METWriter
::
UpdateFieldSize
()
{
sal_u
Long
nPos
;
sal_u
Int32
nPos
;
nPos
=
pMET
->
Tell
();
pMET
->
Seek
(
nActualFieldStartPos
);
...
...
@@ -383,7 +383,7 @@ void METWriter::UpdateFieldSize()
}
void
METWriter
::
WriteFieldId
(
sal_u
Long
nId
)
void
METWriter
::
WriteFieldId
(
sal_u
Int32
nId
)
{
sal_uInt8
nbyte
;
short
i
;
...
...
@@ -508,7 +508,7 @@ void METWriter::WriteChrSets()
}
void
METWriter
::
WriteColorAttributeTable
(
sal_u
Long
nFieldId
,
BitmapPalette
*
pPalette
,
sal_uInt8
nBasePartFlags
,
sal_uInt8
nBasePartLCTID
)
void
METWriter
::
WriteColorAttributeTable
(
sal_u
Int32
nFieldId
,
BitmapPalette
*
pPalette
,
sal_uInt8
nBasePartFlags
,
sal_uInt8
nBasePartLCTID
)
{
sal_uInt16
nIndex
,
nNumI
,
i
;
...
...
@@ -565,8 +565,8 @@ void METWriter::WriteImageObject(const Bitmap & rBitmap)
{
SvMemoryStream
aTemp
(
0x00010000
,
0x00010000
);
sal_uInt32
nWidth
,
nHeight
,
nResX
,
nResY
;
sal_u
Long
nBytesPerLine
,
i
,
j
,
nNumColors
,
ny
,
nLines
;
sal_u
Long
nActColMapId
;
sal_u
Int32
nBytesPerLine
,
i
,
j
,
nNumColors
,
ny
,
nLines
;
sal_u
Int32
nActColMapId
;
sal_uInt16
nBitsPerPixel
;
sal_uInt8
nbyte
;
...
...
@@ -1132,7 +1132,7 @@ void METWriter::WriteDataDescriptor(const GDIMetaFile *)
}
void
METWriter
::
WillWriteOrder
(
sal_u
Long
nNextOrderMaximumLength
)
void
METWriter
::
WillWriteOrder
(
sal_u
Int32
nNextOrderMaximumLength
)
{
// The parameters of a 'Graphics Data Fields' can be (according to OS2
// documentation) at most 32759 bytes long. Meant by this is the size
...
...
@@ -2339,7 +2339,7 @@ void METWriter::WriteOrders( const GDIMetaFile* pMTF )
void
METWriter
::
WriteObjectEnvironmentGroup
(
const
GDIMetaFile
*
pMTF
)
{
sal_u
Long
i
,
nId
;
sal_u
Int32
i
,
nId
;
//--- The Field 'Begin Object Environment Group':
WriteFieldIntroducer
(
16
,
BegObjEnvMagic
,
0
,
0
);
...
...
@@ -2386,7 +2386,7 @@ void METWriter::WriteObjectEnvironmentGroup(const GDIMetaFile * pMTF)
void
METWriter
::
WriteGraphicsObject
(
const
GDIMetaFile
*
pMTF
)
{
sal_u
Long
nSegmentSize
,
nPos
,
nDataFieldsStartPos
;
sal_u
Int32
nSegmentSize
,
nPos
,
nDataFieldsStartPos
;
if
(
bStatus
==
sal_False
)
return
;
...
...
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