fix(Any): Modifications to fix OSS Fuzz report (#4818)

Changes triggered by the OSS Fuzz report: https://issues.oss-fuzz.com/issues/42538385?pli=1

* fix(Any): set pHolder to nullptr in destruct()

* enh(Any): modernised source code.

* enh(Any): introduce allocation type (empty, local, external).

* chore(Any): Apply suggestions from code review.
This commit is contained in:
Matej Kenda
2025-01-08 17:01:27 +01:00
committed by GitHub
parent 336e0e802f
commit bd7be38d6f
2 changed files with 90 additions and 43 deletions

View File

@@ -369,10 +369,10 @@ namespace Impl {
};
template <typename T>
using EnableSigned = typename std::enable_if< std::is_signed<T>::value >::type*;
using EnableSigned = typename std::enable_if_t< std::is_signed<T>::value >*;
template <typename T>
using EnableUnsigned = typename std::enable_if< std::is_unsigned<T>::value >::type*;
using EnableUnsigned = typename std::enable_if_t< std::is_unsigned<T>::value >*;
} // namespace Impl