GNOME Bugzilla – Bug 339821
[patch] serializing a GValue with a NULL buffer crashes
Last modified: 2006-04-28 13:13:40 UTC
gst_value_serialize on a GValue with a NULL buffer crashes as demonstrated by attached patch to gst/gstvalue.c check.
Created attachment 64330 [details] [review] check for NULL serialisation
Created attachment 64331 [details] [review] patch to fix the crasher
* gst/gstvalue.c: (gst_value_serialize_buffer), (gst_value_deserialize_buffer): Don't try to serialize a GValue with a NULL buffer. Fixes #339821. * tests/check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite): Added check for serialisation of NULL buffers.