From 0d14aec56f949fd3e5bd2c3cd6e3bb66c0680085 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Mon, 28 Sep 2026 10:18:41 +0200 Subject: [PATCH] Fix memory deletion for bufferptr in SerializedInfo/RootSerializableKeyValueStore Triggered by UBSan check in an external project (using delete on a buffer is UB and should be delete[]). --- .../Utils/include/CommonUtils/RootSerializableKeyValueStore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Utils/include/CommonUtils/RootSerializableKeyValueStore.h b/Common/Utils/include/CommonUtils/RootSerializableKeyValueStore.h index 25205ce05ab40..0683f52a4b36f 100644 --- a/Common/Utils/include/CommonUtils/RootSerializableKeyValueStore.h +++ b/Common/Utils/include/CommonUtils/RootSerializableKeyValueStore.h @@ -65,7 +65,7 @@ class RootSerializableKeyValueStore ~SerializedInfo() { // we are the owner of this ... so delete it - delete bufferptr; + delete[] bufferptr; } void* objptr = nullptr; //! pointer for "caching"