mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
utils: catch invalid instance sizes in gst_type_register_static_full()
Add guards to catch overly large instance sizes. https://bugzilla.gnome.org/show_bug.cgi?id=660955
This commit is contained in:
parent
01d87250a8
commit
56e27b0546
1 changed files with 3 additions and 0 deletions
|
@ -3900,6 +3900,9 @@ gst_type_register_static_full (GType parent_type,
|
|||
{
|
||||
GTypeInfo info;
|
||||
|
||||
g_return_val_if_fail (class_size <= G_MAXUINT16, G_TYPE_INVALID);
|
||||
g_return_val_if_fail (instance_size <= G_MAXUINT16, G_TYPE_INVALID);
|
||||
|
||||
info.class_size = class_size;
|
||||
info.base_init = base_init;
|
||||
info.base_finalize = base_finalize;
|
||||
|
|
Loading…
Reference in a new issue