New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun May 6 02:42:30 UTC 2018


Hi,

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

11 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 11 of 11 defect(s)


** CID 1435443:  API usage errors  (SWAPPED_ARGUMENTS)


________________________________________________________________________________________________________
*** CID 1435443:  API usage errors  (SWAPPED_ARGUMENTS)
/svx/source/accessibility/svxrectctaccessiblecontext.cxx: 854 in RectCtlAccessibleContext::FireChildFocus(RectPoint)()
848             }
849             else
850             {
851                 Any                             aOld;
852                 Any                             aNew;
853                 aNew <<= AccessibleStateType::FOCUSED;
>>>     CID 1435443:  API usage errors  (SWAPPED_ARGUMENTS)
>>>     The positions of arguments in the call to "NotifyAccessibleEvent" do not match the ordering of the parameters:
* "aNew" is passed to "_rOldValue"
* "aOld" is passed to "_rNewValue"
854                 NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aNew, aOld);
855             }
856         }
857         else
858             mnSelectedChild = NOCHILDSELECTED;
859     }

** CID 1435442:  Error handling issues  (CHECKED_RETURN)
/vcl/source/image/ImplImageTree.cxx: 611 in ImplImageTree::getNameAccess()()


________________________________________________________________________________________________________
*** CID 1435442:  Error handling issues  (CHECKED_RETURN)
/vcl/source/image/ImplImageTree.cxx: 611 in ImplImageTree::getNameAccess()()
605         }
606         return rNameAccess.is();
607     }
608     
609     css::uno::Reference<css::container::XNameAccess> const & ImplImageTree::getNameAccess()
610     {
>>>     CID 1435442:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "checkPathAccess" without checking return value (as is done elsewhere 4 out of 5 times).
611         checkPathAccess();
612         return getCurrentIconSet().maNameAccess;
613     }
614     

** CID 1435441:    (UNINIT_CTOR)
/usr/include/c++/7/bits/regex.h: 2460 in std::__cxx11::regex_iterator<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, wchar_t, std::__cxx11::regex_traits<wchar_t>>::regex_iterator()()
/usr/include/c++/7/bits/regex.h: 2460 in std::__cxx11::regex_iterator<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, char, std::__cxx11::regex_traits<char>>::regex_iterator()()


________________________________________________________________________________________________________
*** CID 1435441:    (UNINIT_CTOR)
/usr/include/c++/7/bits/regex.h: 2460 in std::__cxx11::regex_iterator<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, wchar_t, std::__cxx11::regex_traits<wchar_t>>::regex_iterator()()
2454           /**
2455            * @brief Provides a singular iterator, useful for indicating
2456            * one-past-the-end of a range.
2457            */
2458           regex_iterator()
2459           : _M_pregex()
>>>     CID 1435441:    (UNINIT_CTOR)
>>>     Non-static class member "_M_flags" is not initialized in this constructor nor in any functions that it calls.
2460           { }
2461     
2462           /**
2463            * Constructs a %regex_iterator...
2464            * @param __a  [IN] The start of a text range to search.
2465            * @param __b  [IN] One-past-the-end of the text range to search.
/usr/include/c++/7/bits/regex.h: 2460 in std::__cxx11::regex_iterator<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, char, std::__cxx11::regex_traits<char>>::regex_iterator()()
2454           /**
2455            * @brief Provides a singular iterator, useful for indicating
2456            * one-past-the-end of a range.
2457            */
2458           regex_iterator()
2459           : _M_pregex()
>>>     CID 1435441:    (UNINIT_CTOR)
>>>     Non-static class member "_M_flags" is not initialized in this constructor nor in any functions that it calls.
2460           { }
2461     
2462           /**
2463            * Constructs a %regex_iterator...
2464            * @param __a  [IN] The start of a text range to search.
2465            * @param __b  [IN] One-past-the-end of the text range to search.

** CID 1435440:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java: 71 in ()


________________________________________________________________________________________________________
*** CID 1435440:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/qadevOOo/tests/java/ifc/chart/_ChartDataPointProperties.java: 71 in ()
65             if (Line == null) throw new StatusException(Status.failed
66                 ("Relation 'LINE' not found"));
67     
68             doc.setDiagram(Line);
69         }
70     
>>>     CID 1435440:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
>>>     Unread public/protected field: ifc.chart._ChartDataPointProperties.URLTester.
71         protected PropertyTester URLTester = new PropertyTester() {
72             @Override
73             protected Object getNewValue(String propName, Object oldValue)
74                     throws java.lang.IllegalArgumentException {
75                 return utils.getFullTestURL("space-metal.jpg");
76             }

** CID 1435439:    (SWAPPED_ARGUMENTS)


________________________________________________________________________________________________________
*** CID 1435439:    (SWAPPED_ARGUMENTS)
/svx/source/accessibility/svxrectctaccessiblecontext.cxx: 1548 in RectCtlChildAccessibleContext::setStateChecked(bool)()
1542             Any                             aOld;
1543             Any                             aNew;
1544             Any&                            rMod = bChecked? aNew : aOld;
1545     
1546             //Send the STATE_CHANGED(Focused) event to accessible
1547             rMod <<= AccessibleStateType::FOCUSED;
>>>     CID 1435439:    (SWAPPED_ARGUMENTS)
>>>     The positions of arguments in the call to "NotifyAccessibleEvent" do not match the ordering of the parameters:
* "aNew" is passed to "_rOldValue"
* "aOld" is passed to "_rNewValue"
1548             NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aNew, aOld);
1549     
1550             rMod <<= AccessibleStateType::CHECKED;
1551     
1552             NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aNew, aOld);
1553         }
/svx/source/accessibility/svxrectctaccessiblecontext.cxx: 1552 in RectCtlChildAccessibleContext::setStateChecked(bool)()
1546             //Send the STATE_CHANGED(Focused) event to accessible
1547             rMod <<= AccessibleStateType::FOCUSED;
1548             NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aNew, aOld);
1549     
1550             rMod <<= AccessibleStateType::CHECKED;
1551     
>>>     CID 1435439:    (SWAPPED_ARGUMENTS)
>>>     The positions of arguments in the call to "NotifyAccessibleEvent" do not match the ordering of the parameters:
* "aNew" is passed to "_rOldValue"
* "aOld" is passed to "_rNewValue"
1552             NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aNew, aOld);
1553         }
1554     }
1555     
1556     void RectCtlChildAccessibleContext::FireFocusEvent()
1557     {

** CID 1435438:    (UNCAUGHT_EXCEPT)
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()


________________________________________________________________________________________________________
*** CID 1435438:    (UNCAUGHT_EXCEPT)
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
18     void error()
19     {
20         std::cerr << "spellout: missing language module" << std::endl;
21         std::exit(EXIT_FAILURE);
22     }
23     
>>>     CID 1435438:    (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::regex_error" is thrown and never caught.
24     int main(int argc, char* argv[])
25     {
26         if (argc == 1) {
27             std::cout << "spellout " NUMBERTEXT_VERSION ": convert numbers to number names and money amounts" << std::endl;
28             std::cout << "Usage: spellout [-l lang] [-p prefix] par1 [par2...]" << std::endl;
29             std::cout << "Parameter: n: number; n-m: range; n-m~s: range with step" << std::endl;
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
18     void error()
19     {
20         std::cerr << "spellout: missing language module" << std::endl;
21         std::exit(EXIT_FAILURE);
22     }
23     
>>>     CID 1435438:    (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::regex_error" is thrown and never caught.
24     int main(int argc, char* argv[])
25     {
26         if (argc == 1) {
27             std::cout << "spellout " NUMBERTEXT_VERSION ": convert numbers to number names and money amounts" << std::endl;
28             std::cout << "Usage: spellout [-l lang] [-p prefix] par1 [par2...]" << std::endl;
29             std::cout << "Parameter: n: number; n-m: range; n-m~s: range with step" << std::endl;
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
18     void error()
19     {
20         std::cerr << "spellout: missing language module" << std::endl;
21         std::exit(EXIT_FAILURE);
22     }
23     
>>>     CID 1435438:    (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::regex_error" is thrown and never caught.
24     int main(int argc, char* argv[])
25     {
26         if (argc == 1) {
27             std::cout << "spellout " NUMBERTEXT_VERSION ": convert numbers to number names and money amounts" << std::endl;
28             std::cout << "Usage: spellout [-l lang] [-p prefix] par1 [par2...]" << std::endl;
29             std::cout << "Parameter: n: number; n-m: range; n-m~s: range with step" << std::endl;
/workdir/UnpackedTarball/libnumbertext/src/spellout.cxx: 24 in main()
18     void error()
19     {
20         std::cerr << "spellout: missing language module" << std::endl;
21         std::exit(EXIT_FAILURE);
22     }
23     
>>>     CID 1435438:    (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char **)" an exception of type "std::regex_error" is thrown and never caught.
24     int main(int argc, char* argv[])
25     {
26         if (argc == 1) {
27             std::cout << "spellout " NUMBERTEXT_VERSION ": convert numbers to number names and money amounts" << std::endl;
28             std::cout << "Usage: spellout [-l lang] [-p prefix] par1 [par2...]" << std::endl;
29             std::cout << "Parameter: n: number; n-m: range; n-m~s: range with step" << std::endl;

** CID 1435437:  API usage errors  (SWAPPED_ARGUMENTS)


________________________________________________________________________________________________________
*** CID 1435437:  API usage errors  (SWAPPED_ARGUMENTS)
/svx/source/accessibility/svxrectctaccessiblecontext.cxx: 1561 in RectCtlChildAccessibleContext::FireFocusEvent()()
1555     
1556     void RectCtlChildAccessibleContext::FireFocusEvent()
1557     {
1558         Any                             aOld;
1559         Any                             aNew;
1560         aNew <<= AccessibleStateType::FOCUSED;
>>>     CID 1435437:  API usage errors  (SWAPPED_ARGUMENTS)
>>>     The positions of arguments in the call to "NotifyAccessibleEvent" do not match the ordering of the parameters:
* "aNew" is passed to "_rOldValue"
* "aOld" is passed to "_rNewValue"
1561         NotifyAccessibleEvent(AccessibleEventId::STATE_CHANGED, aNew, aOld);
1562     }
1563     
1564     IMPLEMENT_FORWARD_XINTERFACE2( RectCtlChildAccessibleContext, OAccessibleComponentHelper, OAccessibleHelper_Base_3 )
1565     IMPLEMENT_FORWARD_XTYPEPROVIDER2( RectCtlChildAccessibleContext, OAccessibleComponentHelper, OAccessibleHelper_Base_3 )
1566     

** CID 1435436:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/qadevOOo/tests/java/ifc/chart/_LineDiagram.java: 89 in ()


________________________________________________________________________________________________________
*** CID 1435436:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/qadevOOo/tests/java/ifc/chart/_LineDiagram.java: 89 in ()
83         */
84         @Override
85         protected void after() {
86             doc.setDiagram(oldDiagram);
87         }
88     
>>>     CID 1435436:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
>>>     Unread public/protected field: ifc.chart._LineDiagram.URLTester.
89         protected PropertyTester URLTester = new PropertyTester() {
90             @Override
91             protected Object getNewValue(String propName, Object oldValue)
92                     throws java.lang.IllegalArgumentException {
93                 if (oldValue.equals(util.utils.getFullTestURL("space-metal.jpg")))
94                     return util.utils.getFullTestURL("crazy-blue.jpg"); else

** CID 1401499:    (INTEGER_OVERFLOW)
/usr/include/c++/7/bits/regex.tcc: 354 in std::__cxx11::regex_traits<wchar_t>::value(wchar_t, int) const()
/usr/include/c++/7/bits/regex.tcc: 354 in std::__cxx11::regex_traits<char>::value(char, int) const()


________________________________________________________________________________________________________
*** CID 1401499:    (INTEGER_OVERFLOW)
/usr/include/c++/7/bits/regex.tcc: 354 in std::__cxx11::regex_traits<wchar_t>::value(wchar_t, int) const()
348           long __v;
349           if (__radix == 8)
350     	__is >> std::oct;
351           else if (__radix == 16)
352     	__is >> std::hex;
353           __is >> __v;
>>>     CID 1401499:    (INTEGER_OVERFLOW)
>>>     Overflowed or truncated value (or a value computed from an overflowed or truncated value) "__is.fail() ? -1L : __v" used as return value.
354           return __is.fail() ? -1 : __v;
355         }
356     
357       template<typename _Bi_iter, typename _Alloc>
358       template<typename _Out_iter>
359         _Out_iter match_results<_Bi_iter, _Alloc>::
/usr/include/c++/7/bits/regex.tcc: 354 in std::__cxx11::regex_traits<char>::value(char, int) const()
348           long __v;
349           if (__radix == 8)
350     	__is >> std::oct;
351           else if (__radix == 16)
352     	__is >> std::hex;
353           __is >> __v;
>>>     CID 1401499:    (INTEGER_OVERFLOW)
>>>     Overflowed or truncated value (or a value computed from an overflowed or truncated value) "__is.fail() ? -1L : __v" used as return value.
354           return __is.fail() ? -1 : __v;
355         }
356     
357       template<typename _Bi_iter, typename _Alloc>
358       template<typename _Out_iter>
359         _Out_iter match_results<_Bi_iter, _Alloc>::

** CID 1400667:    (UNINIT_CTOR)
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::__cxx11::regex_traits<char>, (bool)0>::_Executor(__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>> &, const std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> &, std::regex_constants::match_flag_type)()
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::__cxx11::regex_traits<char>, (bool)1>::_Executor(__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>> &, const std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> &, std::regex_constants::match_flag_type)()
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>, std::__cxx11::regex_traits<wchar_t>, (bool)0>::_Executor(__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, __gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>> &, const std::__cxx11::basic_regex<wchar_t, std::__cxx11::regex_traits<wchar_t>> &, std::regex_constants::match_flag_type)()
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>, std::__cxx11::regex_traits<wchar_t>, (bool)1>::_Executor(__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, __gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>> &, const std::__cxx11::basic_regex<wchar_t, std::__cxx11::regex_traits<wchar_t>> &, std::regex_constants::match_flag_type)()


________________________________________________________________________________________________________
*** CID 1400667:    (UNINIT_CTOR)
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::__cxx11::regex_traits<char>, (bool)0>::_Executor(__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>> &, const std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> &, std::regex_constants::match_flag_type)()
80           _M_states(_M_nfa._M_start(), _M_nfa.size()),
81           _M_flags((__flags & regex_constants::match_prev_avail)
82     	       ? (__flags
83     		  & ~regex_constants::match_not_bol
84     		  & ~regex_constants::match_not_bow)
85     	       : __flags)
>>>     CID 1400667:    (UNINIT_CTOR)
>>>     Non-static class member "_M_has_sol" is not initialized in this constructor nor in any functions that it calls.
86           { }
87     
88           // Set matched when string exactly matches the pattern.
89           bool
90           _M_match()
91           {
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::__cxx11::regex_traits<char>, (bool)1>::_Executor(__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, __gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char *, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>> &, const std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> &, std::regex_constants::match_flag_type)()
80           _M_states(_M_nfa._M_start(), _M_nfa.size()),
81           _M_flags((__flags & regex_constants::match_prev_avail)
82     	       ? (__flags
83     		  & ~regex_constants::match_not_bol
84     		  & ~regex_constants::match_not_bow)
85     	       : __flags)
>>>     CID 1400667:    (UNINIT_CTOR)
>>>     Non-static class member "_M_has_sol" is not initialized in this constructor nor in any functions that it calls.
86           { }
87     
88           // Set matched when string exactly matches the pattern.
89           bool
90           _M_match()
91           {
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>, std::__cxx11::regex_traits<wchar_t>, (bool)0>::_Executor(__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, __gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>> &, const std::__cxx11::basic_regex<wchar_t, std::__cxx11::regex_traits<wchar_t>> &, std::regex_constants::match_flag_type)()
80           _M_states(_M_nfa._M_start(), _M_nfa.size()),
81           _M_flags((__flags & regex_constants::match_prev_avail)
82     	       ? (__flags
83     		  & ~regex_constants::match_not_bol
84     		  & ~regex_constants::match_not_bow)
85     	       : __flags)
>>>     CID 1400667:    (UNINIT_CTOR)
>>>     Non-static class member "_M_has_sol" is not initialized in this constructor nor in any functions that it calls.
86           { }
87     
88           // Set matched when string exactly matches the pattern.
89           bool
90           _M_match()
91           {
/usr/include/c++/7/bits/regex_executor.h: 86 in std::__detail::_Executor<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>, std::__cxx11::regex_traits<wchar_t>, (bool)1>::_Executor(__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, __gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>, std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const wchar_t *, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>>>>> &, const std::__cxx11::basic_regex<wchar_t, std::__cxx11::regex_traits<wchar_t>> &, std::regex_constants::match_flag_type)()
80           _M_states(_M_nfa._M_start(), _M_nfa.size()),
81           _M_flags((__flags & regex_constants::match_prev_avail)
82     	       ? (__flags
83     		  & ~regex_constants::match_not_bol
84     		  & ~regex_constants::match_not_bow)
85     	       : __flags)
>>>     CID 1400667:    (UNINIT_CTOR)
>>>     Non-static class member "_M_has_sol" is not initialized in this constructor nor in any functions that it calls.
86           { }
87     
88           // Set matched when string exactly matches the pattern.
89           bool
90           _M_match()
91           {

** CID 1296302:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/7/bits/regex_scanner.h: 111 in std::__detail::_ScannerBase::_ScannerBase(std::regex_constants::syntax_option_type)()


________________________________________________________________________________________________________
*** CID 1296302:  Uninitialized members  (UNINIT_CTOR)
/usr/include/c++/7/bits/regex_scanner.h: 111 in std::__detail::_ScannerBase::_ScannerBase(std::regex_constants::syntax_option_type)()
105     		 : _M_flags & regex_constants::egrep
106     		 ? ".[\\()*+?{|^$\n"
107     		 : _M_flags & regex_constants::awk
108     		 ? _M_extended_spec_char
109     		 : nullptr),
110         _M_at_bracket_start(false)
>>>     CID 1296302:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "_M_token" is not initialized in this constructor nor in any functions that it calls.
111         { __glibcxx_assert(_M_spec_char); }
112     
113       protected:
114         const char*
115         _M_find_escape(char __c)
116         {


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpycmqG8OUzLPbuAj36p2XARtBNdnjKbnIzuFjSJEignUG9H9Ufj-2BusYemd5TnkSaIr-2FrW-2BbfjFfrEBg2LwANbGZcNRLnNb35-2BlLWcNq7-2FKX5UVje93LldrDhQ3XDOR0vMkPQIsGlysUPsco6tDnSieVkcbc2qI9wFsbhiHxmM2-2FVw-3D



More information about the LibreOffice mailing list