connectivity/source/drivers/file/FDatabaseMetaData.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit e40ba5a38a183d8da91d312c1a22e61eeb9845fd Author: Caolán McNamara <[email protected]> AuthorDate: Fri Sep 24 13:40:52 2021 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Sep 24 16:42:07 2021 +0200 for fuzzing hardcode a case sensitive file system result for detection rather than throwing ucb exceptions continously Change-Id: Ia3545619fe9a7c4c8f0470179eca68f0ae4bf4de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122588 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/connectivity/source/drivers/file/FDatabaseMetaData.cxx b/connectivity/source/drivers/file/FDatabaseMetaData.cxx index c41f985d0bb0..47777549fa78 100644 --- a/connectivity/source/drivers/file/FDatabaseMetaData.cxx +++ b/connectivity/source/drivers/file/FDatabaseMetaData.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_fuzzers.h> + #include <file/FDatabaseMetaData.hxx> #include <FDatabaseMetaDataResultSet.hxx> #include <com/sun/star/sdbc/ResultSetType.hpp> @@ -227,7 +229,11 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( if ( !bKnowCaseSensitivity ) { bKnowCaseSensitivity = true; +#if ENABLE_FUZZERS + sal_Int16 nCase = 1; +#else sal_Int16 nCase = isCaseSensitiveParentFolder( m_pConnection->getURL(), aURL.getName() ); +#endif switch( nCase ) { case 1:
