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.
4 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 1675660:         (LOCK)
/filter/source/config/cache/typedetection.cxx: 1054           in 
filter::config::TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap
 &, const std::vector<filter::config::FlatDetectionInfo, 
std::allocator<filter::config::FlatDetectionInfo>> &, bool, rtl::OUString &)()
/filter/source/config/cache/typedetection.cxx: 1053           in 
filter::config::TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap
 &, const std::vector<filter::config::FlatDetectionInfo, 
std::allocator<filter::config::FlatDetectionInfo>> &, bool, rtl::OUString &)()
/filter/source/config/cache/typedetection.cxx: 1042           in 
filter::config::TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap
 &, const std::vector<filter::config::FlatDetectionInfo, 
std::allocator<filter::config::FlatDetectionInfo>> &, bool, rtl::OUString &)()


_____________________________________________________________________________________________
*** CID 1675660:           (LOCK)
/filter/source/config/cache/typedetection.cxx: 1054             in 
filter::config::TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap
 &, const std::vector<filter::config::FlatDetectionInfo, 
std::allocator<filter::config::FlatDetectionInfo>> &, bool, rtl::OUString &)()
1048                 // type being checked for.  This is important because many 
detectors
1049                 // report multiple different types which may mess up our 
strict type
1050                 // check order e.g when the type being tested is of higher
1051                 // complexity and the detector reports a type of lower 
complexity.
1052                 if (sDeepType == sFlatType)
1053                     return sDeepType;
>>>     CID 1675660:           (LOCK)
>>>     "~unique_lock" unlocks "aLock" while it is unlocked. [Note: The source 
>>> code implementation of the function has been overridden by a builtin model.]
1054             }
1055             catch(const css::container::NoSuchElementException&)
1056                 {}
1057             // e)
1058         }
1059     
/filter/source/config/cache/typedetection.cxx: 1053             in 
filter::config::TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap
 &, const std::vector<filter::config::FlatDetectionInfo, 
std::allocator<filter::config::FlatDetectionInfo>> &, bool, rtl::OUString &)()
1047                 // d) call it 'detected' only when the reported type 
matches the
1048                 // type being checked for.  This is important because many 
detectors
1049                 // report multiple different types which may mess up our 
strict type
1050                 // check order e.g when the type being tested is of higher
1051                 // complexity and the detector reports a type of lower 
complexity.
1052                 if (sDeepType == sFlatType)
>>>     CID 1675660:           (LOCK)
>>>     "~unique_lock" unlocks "aLock" while it is unlocked. [Note: The source 
>>> code implementation of the function has been overridden by a builtin model.]
1053                     return sDeepType;
1054             }
1055             catch(const css::container::NoSuchElementException&)
1056                 {}
1057             // e)
1058         }
/filter/source/config/cache/typedetection.cxx: 1042             in 
filter::config::TypeDetection::impl_detectTypeFlatAndDeep(comphelper::SequenceAsHashMap
 &, const std::vector<filter::config::FlatDetectionInfo, 
std::allocator<filter::config::FlatDetectionInfo>> &, bool, rtl::OUString &)()
1036                     // preselected by the user can be used as LAST CHANCE 
in case no other type could
1037                     // be detected. Of course only the first type without 
deep detector can be used.
1038                     // Further ones has to be ignored.
1039                     if (rLastChance.isEmpty())
1040                         rLastChance = sFlatType;
1041     
>>>     CID 1675660:           (LOCK)
>>>     "~unique_lock" unlocks "aLock" while it is unlocked. [Note: The source 
>>> code implementation of the function has been overridden by a builtin model.]
1042                     continue;
1043                 }
1044     
1045                 OUString sDeepType = impl_askDetectService(sDetectService, 
rDescriptor);
1046     
1047                 // d) call it 'detected' only when the reported type 
matches the


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

Reply via email to