Change all g_memdup() to g_memdup2()
Using g_memdup() is dangerous due to the type of the size argument. See https://gitlab.gnome.org/GNOME/glib/-/issues/2319 and https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1926 for details. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1708>
This commit is contained in:
@ -791,7 +791,7 @@ meta_workspace_invalidate_work_area (MetaWorkspace *workspace)
|
||||
static MetaStrut *
|
||||
copy_strut(MetaStrut *original)
|
||||
{
|
||||
return g_memdup(original, sizeof(MetaStrut));
|
||||
return g_memdup2 (original, sizeof (MetaStrut));
|
||||
}
|
||||
|
||||
static GSList *
|
||||
|
Reference in New Issue
Block a user