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:
Matthias Clasen 2006-07-21 13:57:25 +00:00 committed by Matthias Clasen
parent 1637ce0a86
commit cf98df8b88
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* === Released 2.12.0 ===

View File

@ -335,7 +335,7 @@ g_type_module_register_type (GTypeModule *module,
module_type_info->info = *type_info;
if (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;
}