Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found
with Coverity Scan.
1 new defect(s) introduced to LibreOffice found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent
build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1668592: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
/sw/source/filter/ww8/docxattributeoutput.cxx: 8126 in
DocxAttributeOutput::CharFontSize(const SvxFontHeightItem &)()
_____________________________________________________________________________________________
*** CID 1668592: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
/sw/source/filter/ww8/docxattributeoutput.cxx: 8126 in
DocxAttributeOutput::CharFontSize(const SvxFontHeightItem &)()
8120 FSNS( XML_w, XML_ascii ), sFontName,
8121 FSNS( XML_w, XML_hAnsi ), sFontName );
8122 }
8123
8124 void DocxAttributeOutput::CharFontSize( const SvxFontHeightItem&
rFontSize)
8125 {
>>> CID 1668592: Incorrect expression (UNINTENDED_INTEGER_DIVISION)
>>> Dividing integer expressions "rFontSize->GetHeight() + 5U" and "10U",
>>> and then converting the integer quotient to type "double". Any remainder,
>>> or fractional part of the quotient, is ignored.
8126 double fontSize = ( rFontSize.GetHeight() + 5 ) / 10;
8127
8128 switch ( rFontSize.Which() )
8129 {
8130 case RES_CHRATR_FONTSIZE:
8131 case RES_CHRATR_CJK_FONTSIZE:
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://scan.coverity.com/projects/libreoffice?tab=overview