Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index



Hi,

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

3 new defect(s) introduced to LibreOffice found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1394670:  Uninitialized members  (UNINIT_CTOR)
/sc/qa/unit/range.cxx: 75 in ScRangeTest::ScRangeTest()()


________________________________________________________________________________________________________
*** CID 1394670:  Uninitialized members  (UNINIT_CTOR)
/sc/qa/unit/range.cxx: 75 in ScRangeTest::ScRangeTest()()
69         CPPUNIT_TEST(testRangeParsing);
70         CPPUNIT_TEST_SUITE_END();
71     
72         void testRangeParsing();
73     
74     private:
    CID 1394670:  Uninitialized members  (UNINIT_CTOR)
    The compiler-generated constructor for this class does not initialize "m_pDoc".
75         ScDocument *m_pDoc;
76         ScDocShellRef m_xDocShRef;
77     };
78     
79     void ScRangeTest::testRangeParsing()
80     {

** CID 1394669:  Uninitialized members  (UNINIT_CTOR)
/sc/qa/unit/range.cxx: 32 in ScAddressTest::ScAddressTest()()


________________________________________________________________________________________________________
*** CID 1394669:  Uninitialized members  (UNINIT_CTOR)
/sc/qa/unit/range.cxx: 32 in ScAddressTest::ScAddressTest()()
26         CPPUNIT_TEST(testAddressParsing);
27         CPPUNIT_TEST_SUITE_END();
28     
29         void testAddressParsing();
30     
31     private:
    CID 1394669:  Uninitialized members  (UNINIT_CTOR)
    The compiler-generated constructor for this class does not initialize "m_pDoc".
32         ScDocument *m_pDoc;
33         ScDocShellRef m_xDocShRef;
34     };
35     
36     void ScAddressTest::testAddressParsing()
37     {

** CID 1394668:    (MIXED_ENUMS)
/sc/source/core/tool/interpr1.cxx: 6771 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6769 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6770 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6775 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6773 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6776 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6774 in ScInterpreter::ScAggregate()()
/sc/source/core/tool/interpr1.cxx: 6772 in ScInterpreter::ScAggregate()()


________________________________________________________________________________________________________
*** CID 1394668:    (MIXED_ENUMS)
/sc/source/core/tool/interpr1.cxx: 6771 in ScInterpreter::ScAggregate()()
6765                     case SUBTOTAL_FUNC_STDP     : ScStDevP();  break;
6766                     case SUBTOTAL_FUNC_SUM      : ScSum();     break;
6767                     case SUBTOTAL_FUNC_VAR      : ScVar();     break;
6768                     case SUBTOTAL_FUNC_VARP     : ScVarP();    break;
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_LARGE", is of different type "ScAggregateFunc".
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
6776                     case AGGREGATE_FUNC_QRTEXC  : ScQuartile( false );   break;
/sc/source/core/tool/interpr1.cxx: 6769 in ScInterpreter::ScAggregate()()
6763                     case SUBTOTAL_FUNC_PROD     : ScProduct(); break;
6764                     case SUBTOTAL_FUNC_STD      : ScStDev();   break;
6765                     case SUBTOTAL_FUNC_STDP     : ScStDevP();  break;
6766                     case SUBTOTAL_FUNC_SUM      : ScSum();     break;
6767                     case SUBTOTAL_FUNC_VAR      : ScVar();     break;
6768                     case SUBTOTAL_FUNC_VARP     : ScVarP();    break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_MEDIAN", is of different type "ScAggregateFunc".
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
/sc/source/core/tool/interpr1.cxx: 6770 in ScInterpreter::ScAggregate()()
6764                     case SUBTOTAL_FUNC_STD      : ScStDev();   break;
6765                     case SUBTOTAL_FUNC_STDP     : ScStDevP();  break;
6766                     case SUBTOTAL_FUNC_SUM      : ScSum();     break;
6767                     case SUBTOTAL_FUNC_VAR      : ScVar();     break;
6768                     case SUBTOTAL_FUNC_VARP     : ScVarP();    break;
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_MODSNGL", is of different type "ScAggregateFunc".
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
/sc/source/core/tool/interpr1.cxx: 6775 in ScInterpreter::ScAggregate()()
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_PERCEXC", is of different type "ScAggregateFunc".
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
6776                     case AGGREGATE_FUNC_QRTEXC  : ScQuartile( false );   break;
6777                     default : PushIllegalArgument();       break;
6778                 }
6779                 mnSubTotalFlags = SubtotalFlags::NONE;
6780             }
/sc/source/core/tool/interpr1.cxx: 6773 in ScInterpreter::ScAggregate()()
6767                     case SUBTOTAL_FUNC_VAR      : ScVar();     break;
6768                     case SUBTOTAL_FUNC_VARP     : ScVarP();    break;
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_PERCINC", is of different type "ScAggregateFunc".
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
6776                     case AGGREGATE_FUNC_QRTEXC  : ScQuartile( false );   break;
6777                     default : PushIllegalArgument();       break;
6778                 }
/sc/source/core/tool/interpr1.cxx: 6776 in ScInterpreter::ScAggregate()()
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_QRTEXC", is of different type "ScAggregateFunc".
6776                     case AGGREGATE_FUNC_QRTEXC  : ScQuartile( false );   break;
6777                     default : PushIllegalArgument();       break;
6778                 }
6779                 mnSubTotalFlags = SubtotalFlags::NONE;
6780             }
6781             double nVal = GetDouble();
/sc/source/core/tool/interpr1.cxx: 6774 in ScInterpreter::ScAggregate()()
6768                     case SUBTOTAL_FUNC_VARP     : ScVarP();    break;
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_QRTINC", is of different type "ScAggregateFunc".
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
6776                     case AGGREGATE_FUNC_QRTEXC  : ScQuartile( false );   break;
6777                     default : PushIllegalArgument();       break;
6778                 }
6779                 mnSubTotalFlags = SubtotalFlags::NONE;
/sc/source/core/tool/interpr1.cxx: 6772 in ScInterpreter::ScAggregate()()
6766                     case SUBTOTAL_FUNC_SUM      : ScSum();     break;
6767                     case SUBTOTAL_FUNC_VAR      : ScVar();     break;
6768                     case SUBTOTAL_FUNC_VARP     : ScVarP();    break;
6769                     case AGGREGATE_FUNC_MEDIAN  : ScMedian();            break;
6770                     case AGGREGATE_FUNC_MODSNGL : ScModalValue();        break;
6771                     case AGGREGATE_FUNC_LARGE   : ScLarge();             break;
    CID 1394668:    (MIXED_ENUMS)
    But this case, "AGGREGATE_FUNC_SMALL", is of different type "ScAggregateFunc".
6772                     case AGGREGATE_FUNC_SMALL   : ScSmall();             break;
6773                     case AGGREGATE_FUNC_PERCINC : ScPercentile( true );  break;
6774                     case AGGREGATE_FUNC_QRTINC  : ScQuartile( true );    break;
6775                     case AGGREGATE_FUNC_PERCEXC : ScPercentile( false ); break;
6776                     case AGGREGATE_FUNC_QRTEXC  : ScQuartile( false );   break;
6777                     default : PushIllegalArgument();       break;


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpybg5NUbMblUZCgKpBBsVE-2FrMDgNxVu8xgKOkTdGKPQaJ74X7pQcLjClNefas7pHnfxwI7EXi3alJEepkU12EprTCDQnXhK9rof0WCT2ZrA71WaMCYsVCUUhvF6YD9WPtndbOuwGmlZLvC1iEeIUgVl3Pc9-2Fc-2BlCxmkIq45FWr-2FCs-3D

To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpybg5NUbMblUZCgKpBBsVE-2FmsygXJBWeQz0ZcDYbV1EJrZ6X-2Fv4j9EqHS-2FP-2B-2Fl1MyAGw-2F85fuMa4NCH-2Ftd1Sm4YQ9JIqvOUcYIB0RKQYz8iBJXEWfDfsB4iubhDbDxaPmDZpj91WGPdxyaTK2e7lQHVF4r72GgSyctvQgLKUmDUUY-3D


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.