GNOME Bugzilla – Bug 80814
bogus memory access in g_boxed_copy()
Last modified: 2004-12-22 21:47:04 UTC
From gobject/gboxed.c, line 377: /* double check and grouse if things went wrong */ if (dest_value.data[1].v_ulong || dest_value.data[2].v_ulong) g_warning ("the copy_value() implementation of type `%s' seems to make use of reserved GValue fields", g_type_name (boxed_type)); dest_value.data[2] is out of bounds, since GValue::data[] has only 2 elements. This code path is only triggered when deriving directly from G_TYPE_BOXED, without using g_boxed_type_register_static().
Created attachment 8179 [details] [review] Fix for out-of-bounds array access in g_boxed_copy().
Mon May 6 16:03:20 2002 Owen Taylor <otaylor@redhat.com> * gboxed.c (g_boxed_copy): Remove check on data[2] that no longer exists. (#80814, Daniel Elstner)