New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat May 6 07:08:51 UTC 2017


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

9 new defect(s) introduced to LibreOffice found with Coverity Scan.
8 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 9 of 9 defect(s)


** CID 1405898:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 61 in ()


________________________________________________________________________________________________________
*** CID 1405898:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 61 in ()
55         "TAGEIMJAHR"
56         "DAYSINYEAR"
57     };
58     
59     static const char* DATE_DEFFUNCNAME_WeeksInYear[2] =
60     {
>>>     CID 1405898:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_WeeksInYear", a suspicious concatenated string ""WOCHENIMJAHRWEEKSINYEAR"" is produced.
61         "WOCHENIMJAHR"
62         "WEEKSINYEAR"
63     };
64     
65     static const char* DATE_DEFFUNCNAME_Rot13[2] =
66     {

** CID 1405897:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 37 in ()


________________________________________________________________________________________________________
*** CID 1405897:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 37 in ()
31         "MONATE"
32         "MONTHS"
33     };
34     
35     static const char* DATE_DEFFUNCNAME_DiffYears[2] =
36     {
>>>     CID 1405897:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_DiffYears", a suspicious concatenated string ""JAHREYEARS"" is produced.
37         "JAHRE"
38         "YEARS"
39     };
40     
41     static const char* DATE_DEFFUNCNAME_IsLeapYear[2] =
42     {

** CID 1405896:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 67 in ()


________________________________________________________________________________________________________
*** CID 1405896:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 67 in ()
61         "WOCHENIMJAHR"
62         "WEEKSINYEAR"
63     };
64     
65     static const char* DATE_DEFFUNCNAME_Rot13[2] =
66     {
>>>     CID 1405896:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_Rot13", a suspicious concatenated string ""ROT13ROT13"" is produced.
67         "ROT13"
68         "ROT13"
69     };
70     
71     #endif
72     

** CID 1405895:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 43 in ()


________________________________________________________________________________________________________
*** CID 1405895:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 43 in ()
37         "JAHRE"
38         "YEARS"
39     };
40     
41     static const char* DATE_DEFFUNCNAME_IsLeapYear[2] =
42     {
>>>     CID 1405895:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_IsLeapYear", a suspicious concatenated string ""ISTSCHALTJAHRISLEAPYEAR"" is produced.
43         "ISTSCHALTJAHR"
44         "ISLEAPYEAR"
45     };
46     
47     static const char* DATE_DEFFUNCNAME_DaysInMonth[2] =
48     {

** CID 1405894:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 25 in ()


________________________________________________________________________________________________________
*** CID 1405894:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 25 in ()
19     
20     #ifndef INCLUDED_SCADDINS_SOURCE_DATEFUNC_DEFFUNCTIONNAME_HXX
21     #define INCLUDED_SCADDINS_SOURCE_DATEFUNC_DEFFUNCTIONNAME_HXX
22     
23     static const char* DATE_DEFFUNCNAME_DiffWeeks[2] =
24     {
>>>     CID 1405894:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_DiffWeeks", a suspicious concatenated string ""WOCHENWEEKS"" is produced.
25         "WOCHEN"
26         "WEEKS"
27     };
28     
29     static const char* DATE_DEFFUNCNAME_DiffMonths[2] =
30     {

** CID 1405893:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 55 in ()


________________________________________________________________________________________________________
*** CID 1405893:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 55 in ()
49         "TAGEIMMONAT"
50         "DAYSINMONTH"
51     };
52     
53     static const char* DATE_DEFFUNCNAME_DaysInYear[2] =
54     {
>>>     CID 1405893:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_DaysInYear", a suspicious concatenated string ""TAGEIMJAHRDAYSINYEAR"" is produced.
55         "TAGEIMJAHR"
56         "DAYSINYEAR"
57     };
58     
59     static const char* DATE_DEFFUNCNAME_WeeksInYear[2] =
60     {

** CID 1405892:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 31 in ()


________________________________________________________________________________________________________
*** CID 1405892:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 31 in ()
25         "WOCHEN"
26         "WEEKS"
27     };
28     
29     static const char* DATE_DEFFUNCNAME_DiffMonths[2] =
30     {
>>>     CID 1405892:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_DiffMonths", a suspicious concatenated string ""MONATEMONTHS"" is produced.
31         "MONATE"
32         "MONTHS"
33     };
34     
35     static const char* DATE_DEFFUNCNAME_DiffYears[2] =
36     {

** CID 1405891:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 49 in ()


________________________________________________________________________________________________________
*** CID 1405891:  Incorrect expression  (MISSING_COMMA)
/scaddins/source/datefunc/deffuncname.hxx: 49 in ()
43         "ISTSCHALTJAHR"
44         "ISLEAPYEAR"
45     };
46     
47     static const char* DATE_DEFFUNCNAME_DaysInMonth[2] =
48     {
>>>     CID 1405891:  Incorrect expression  (MISSING_COMMA)
>>>     In the initialization of "DATE_DEFFUNCNAME_DaysInMonth", a suspicious concatenated string ""TAGEIMMONATDAYSINMONTH"" is produced.
49         "TAGEIMMONAT"
50         "DAYSINMONTH"
51     };
52     
53     static const char* DATE_DEFFUNCNAME_DaysInYear[2] =
54     {

** CID 1405890:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/undo/unattr.cxx: 136 in SwUndoFormatAttr::Init()()


________________________________________________________________________________________________________
*** CID 1405890:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/undo/unattr.cxx: 136 in SwUndoFormatAttr::Init()()
130     {
131         // treat change of anchor specially
132         if ( SfxItemState::SET == m_pOldSet->GetItemState( RES_ANCHOR, false )) {
133             SaveFlyAnchor( m_bSaveDrawPt );
134         } else if ( RES_FRMFMT == m_nFormatWhich ) {
135             SwDoc* pDoc = m_pFormat->GetDoc();
>>>     CID 1405890:  Null pointer dereferences  (FORWARD_NULL)
>>>     Dynamic cast to pointer "dynamic_cast <SwFrameFormat *>(this->m_pFormat)" can return "NULL".
136             if (pDoc->GetTableFrameFormats()->ContainsFormat(dynamic_cast<SwFrameFormat*>(m_pFormat)))
137             {
138                 // Table Format: save table position, table formats are volatile!
139                 SwTable * pTable = SwIterator<SwTable,SwFormat>( *m_pFormat ).First();
140                 if ( pTable ) {
141                     m_nNodeIndex = pTable->GetTabSortBoxes()[ 0 ]->GetSttNd()


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyZUFG6lqrAGupX8a8A0rBEP-2Br-2FoVqZtWm-2BoRWJQ2l49HnSgo41DEBA32VYjXNeLJZJib4igmEyqbbP7Kwav71YBtODRHm-2BDdebWEMzjbbog0S1Gbj7CeE65HoO49YnizSjSGWoQlyTmjkqAZpVOgsJnotrJTLKbTF5Nv0k2Vhj2U-3D

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyZUFG6lqrAGupX8a8A0rBEPhZw8yynT4dMBDzpe8NwIeUNlfgj6eQs1k34enabzgIxFWHVMl8UA-2BQNhq6WyNRDLD3uvyYddnE94P8O3cQZwXrQw5yMyijFdqWtWdPBAnezKI8mCrWE82Uz7A-2F-2BOhw69-2Fk0-2FLgce8-2BS8Hg6yYaETE-3D



More information about the LibreOffice mailing list