registry/source/reflread.cxx | 7 ------- unoidl/source/unoidlprovider.cxx | 7 ------- 2 files changed, 14 deletions(-)
New commits: commit 277cd55361980b68597ad7eb7ffd1afce9e1c382 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Jan 18 19:54:05 2025 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Jan 20 09:29:17 2025 +0100 __coverity_tainted_data_sanitize__ is deprecated Change-Id: I333fa67d7f9a8369405c39873760bba1ae2a2c7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180491 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 844b73166e03..13c6a28ae458 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -955,10 +955,6 @@ RTParamMode MethodList::getMethodParamMode(sal_uInt16 index, sal_uInt16 paramInd return aMode; } -#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 -extern "C" void __coverity_tainted_data_sanitize__(void *); -#endif - sal_uInt16 MethodList::getMethodExcCount(sal_uInt16 index) const { sal_uInt16 aCount = 0; @@ -967,9 +963,6 @@ sal_uInt16 MethodList::getMethodExcCount(sal_uInt16 index) const { try { aCount = readUINT16(m_pIndex[index] + calcMethodParamIndex(readUINT16(m_pIndex[index] + METHOD_OFFSET_PARAM_COUNT))); -#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 - __coverity_tainted_data_sanitize__(&aCount); -#endif } catch (BlopObject::BoundsError &) { SAL_WARN("registry", "bad data"); } diff --git a/unoidl/source/unoidlprovider.cxx b/unoidl/source/unoidlprovider.cxx index 9b5dd2b28de5..a43913c29a61 100644 --- a/unoidl/source/unoidlprovider.cxx +++ b/unoidl/source/unoidlprovider.cxx @@ -534,10 +534,6 @@ sal_uInt32 findInMap( return off; } -#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 -extern "C" void __coverity_tainted_data_sanitize__(void *); -#endif - std::vector< OUString > readAnnotations( bool annotated, rtl::Reference< MappedFile > const & file, sal_uInt32 offset, sal_uInt32 * newOffset = nullptr) @@ -545,9 +541,6 @@ std::vector< OUString > readAnnotations( std::vector< OUString > ans; if (annotated) { sal_uInt32 n = file->read32(offset); -#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 - __coverity_tainted_data_sanitize__(&n); -#endif offset += 4; for (sal_uInt32 i = 0; i != n; ++i) { ans.push_back(file->readIdxString(&offset));