Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-11-02 13:50:42 +0300
committerJulian Eisel <julian@blender.org>2022-11-02 13:56:50 +0300
commit460c9d3d92e9f74254d58c6bb07d7e4fcb53e8b7 (patch)
tree3c8174f75bb4b6cc6a6a5839229a6a3b56b1786d
parent638bf05a23e1ef7dddd3b5d42d9521d8849a4375 (diff)
Fix use-after-free in asset library storage destruction
Would only appear when more than 4 asset libraries were loaded, because small buffer optimization would hide the issue.
-rw-r--r--source/blender/editors/asset/intern/asset_list.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/asset/intern/asset_list.cc b/source/blender/editors/asset/intern/asset_list.cc
index 01a6dc46c48..bb72c5cc1bb 100644
--- a/source/blender/editors/asset/intern/asset_list.cc
+++ b/source/blender/editors/asset/intern/asset_list.cc
@@ -351,7 +351,7 @@ void AssetListStorage::fetch_library(const AssetLibraryReference &library_refere
void AssetListStorage::destruct()
{
- global_storage().~AssetListMap();
+ global_storage().clear();
}
AssetList *AssetListStorage::lookup_list(const AssetLibraryReference &library_ref)