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:
authorCampbell Barton <campbell@blender.org>2022-06-14 11:01:51 +0300
committerCampbell Barton <campbell@blender.org>2022-06-14 11:01:51 +0300
commitc654a922376aae692b643a03e0864ea22841272b (patch)
tree1d58a0627387aa7a692f21b0e055949f25fca2e3
parentc1d295e905f9fb4a05218bf2db674e7739b179a6 (diff)
Fix use after free error in 827fa8176737f822b7f8d2354b05e59976c7101a
-rw-r--r--intern/ghost/intern/GHOST_SystemWayland.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index 49342110df7..caf65f477a1 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -843,7 +843,7 @@ static void data_device_drop(void *data, struct wl_data_device * /*wl_data_devic
data_offer_t *data_offer,
wl_surface *surface,
const std::string mime_receive) {
- const wl_fixed_t *xy = data_offer->dnd.xy;
+ const wl_fixed_t xy[2] = {data_offer->dnd.xy[0], data_offer->dnd.xy[1]};
const std::string data = read_pipe(data_offer, mime_receive, nullptr);