mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
gst/gstvalue.c: Avoid NULL dereference when trying to serialize flags containing invalid values.
Original commit message from CVS: * gst/gstvalue.c: (gst_value_serialize_flags): Avoid NULL dereference when trying to serialize flags containing invalid values.
This commit is contained in:
parent
8a8227aacf
commit
530851afcf
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-28 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
|
* gst/gstvalue.c: (gst_value_serialize_flags):
|
||||||
|
Avoid NULL dereference when trying to serialize flags containing
|
||||||
|
invalid values.
|
||||||
|
|
||||||
2006-04-28 Michael Smith <msmith@fluendo.com>
|
2006-04-28 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* plugins/elements/gsttypefindelement.c:
|
* plugins/elements/gsttypefindelement.c:
|
||||||
|
|
|
@ -1928,9 +1928,10 @@ gst_value_serialize_flags (const GValue * value)
|
||||||
g_free (result);
|
g_free (result);
|
||||||
result = tmp;
|
result = tmp;
|
||||||
first = FALSE;
|
first = FALSE;
|
||||||
|
|
||||||
|
/* clear flag */
|
||||||
|
flags &= ~fl->value;
|
||||||
}
|
}
|
||||||
/* clear flag */
|
|
||||||
flags &= ~fl->value;
|
|
||||||
}
|
}
|
||||||
g_type_class_unref (klass);
|
g_type_class_unref (klass);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue