New Defects reported by Coverity Scan for LibreOffice
Stephan Bergmann
sbergman at redhat.com
Tue Sep 8 13:45:27 UTC 2020
On 08/09/2020 11:13, scan-admin at coverity.com wrote:
[...]
> ** CID 1466661: Parse warnings (PARSE_ERROR)
> /dbaccess/source/ui/dlg/dbfindex.cxx: 39 in ()
>
>
> ________________________________________________________________________________________________________
> *** CID 1466661: Parse warnings (PARSE_ERROR)
> /dbaccess/source/ui/dlg/dbfindex.cxx: 39 in ()
> 33 namespace dbaui
> 34 {
> 35 using namespace ::com::sun::star::uno;
> 36 using namespace ::com::sun::star::ucb;
> 37 using namespace ::svt;
> 38
>>>> CID 1466661: Parse warnings (PARSE_ERROR)
>>>> class template name must be a placeholder for the complete type being initialized (not for a component of that type)
> 39 const OStringLiteral aGroupIdent("dBase III");
> 40
> 41
> 42 ODbaseIndexDialog::ODbaseIndexDialog(weld::Window * pParent, const OUString& aDataSrcName)
> 43 : GenericDialogController(pParent, "dbaccess/ui/dbaseindexdialog.ui", "DBaseIndexDialog")
> 44 , m_aDSN(aDataSrcName)
>
[...]
> ** CID 1466653: Parse warnings (PARSE_ERROR)
> /oox/source/vml/vmlinputstream.cxx: 267 in ()
>
>
> ________________________________________________________________________________________________________
> *** CID 1466653: Parse warnings (PARSE_ERROR)
> /oox/source/vml/vmlinputstream.cxx: 267 in ()
> 261 return bHasBracket;
> 262 }
> 263
> 264 } // namespace
> 265
> 266 const OStringLiteral gaOpeningCData( "<![CDATA[" );
>>>> CID 1466653: Parse warnings (PARSE_ERROR)
>>>> class template name must be a placeholder for the complete type being initialized (not for a component of that type)
> 267 const OStringLiteral gaClosingCData( "]]>" );
> 268
> 269 InputStream::InputStream( const Reference< XComponentContext >& rxContext, const Reference< XInputStream >& rxInStrm ) :
> 270 // use single-byte ISO-8859-1 encoding which maps all byte characters to the first 256 Unicode characters
> 271 mxTextStrm( TextInputStream::createXTextInputStream( rxContext, rxInStrm, RTL_TEXTENCODING_ISO_8859_1 ) ),
> 272 maOpeningBracket( 1 ),
>
[...]
> ** CID 1466650: Parse warnings (PARSE_ERROR)
> /oox/source/vml/vmlinputstream.cxx: 266 in ()
>
>
> ________________________________________________________________________________________________________
> *** CID 1466650: Parse warnings (PARSE_ERROR)
> /oox/source/vml/vmlinputstream.cxx: 266 in ()
> 260
> 261 return bHasBracket;
> 262 }
> 263
> 264 } // namespace
> 265
>>>> CID 1466650: Parse warnings (PARSE_ERROR)
>>>> class template name must be a placeholder for the complete type being initialized (not for a component of that type)
> 266 const OStringLiteral gaOpeningCData( "<![CDATA[" );
> 267 const OStringLiteral gaClosingCData( "]]>" );
> 268
> 269 InputStream::InputStream( const Reference< XComponentContext >& rxContext, const Reference< XInputStream >& rxInStrm ) :
> 270 // use single-byte ISO-8859-1 encoding which maps all byte characters to the first 256 Unicode characters
> 271 mxTextStrm( TextInputStream::createXTextInputStream( rxContext, rxInStrm, RTL_TEXTENCODING_ISO_8859_1 ) ),
>
> ** CID 1466649: Parse warnings (PARSE_ERROR)
> /idlc/source/astdeclaration.cxx: 25 in ()
>
>
> ________________________________________________________________________________________________________
> *** CID 1466649: Parse warnings (PARSE_ERROR)
> /idlc/source/astdeclaration.cxx: 25 in ()
> 19
> 20 #include <astdeclaration.hxx>
> 21 #include <astscope.hxx>
> 22 #include <rtl/strbuf.hxx>
> 23 #include <osl/diagnose.h>
> 24
>>>> CID 1466649: Parse warnings (PARSE_ERROR)
>>>> class template name must be a placeholder for the complete type being initialized (not for a component of that type)
> 25 const OStringLiteral sGlobal("::");
> 26
> 27 static OString convertName(const OString& name)
> 28 {
> 29 OStringBuffer nameBuffer(name.getLength()+1);
> 30 sal_Int32 nIndex = 0;
I have contacted Coverity about the above PARSE_ERROR problem.
More information about the LibreOffice
mailing list