mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
Copy the complete value table, not just the first 4 bytes. (#348136,
2006-07-21 Matthias Clasen <mclasen@redhat.com> * gtypemodule.c (g_type_module_register_type): Copy the complete value table, not just the first 4 bytes. (#348136, Coverity)
This commit is contained in:
parent
1637ce0a86
commit
cf98df8b88
@ -1,3 +1,8 @@
|
|||||||
|
2006-07-21 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtypemodule.c (g_type_module_register_type): Copy the complete
|
||||||
|
value table, not just the first 4 bytes. (#348136, Coverity)
|
||||||
|
|
||||||
2006-07-02 Matthias Clasen <mclasen@redhat.com>
|
2006-07-02 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* === Released 2.12.0 ===
|
* === Released 2.12.0 ===
|
||||||
|
@ -335,7 +335,7 @@ g_type_module_register_type (GTypeModule *module,
|
|||||||
module_type_info->info = *type_info;
|
module_type_info->info = *type_info;
|
||||||
if (type_info->value_table)
|
if (type_info->value_table)
|
||||||
module_type_info->info.value_table = g_memdup (type_info->value_table,
|
module_type_info->info.value_table = g_memdup (type_info->value_table,
|
||||||
sizeof (type_info->value_table));
|
sizeof (GTypeValueTable));
|
||||||
|
|
||||||
return module_type_info->type;
|
return module_type_info->type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user