After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339821 - [patch] serializing a GValue with a NULL buffer crashes
[patch] serializing a GValue with a NULL buffer crashes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.10.6
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-26 15:42 UTC by Wim Taymans
Modified: 2006-04-28 13:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
check for NULL serialisation (2.53 KB, patch)
2006-04-26 15:43 UTC, Wim Taymans
committed Details | Review
patch to fix the crasher (1.77 KB, patch)
2006-04-26 15:45 UTC, Wim Taymans
committed Details | Review

Description Wim Taymans 2006-04-26 15:42:34 UTC
gst_value_serialize on a GValue with a NULL buffer crashes as demonstrated by attached patch to gst/gstvalue.c check.
Comment 1 Wim Taymans 2006-04-26 15:43:48 UTC
Created attachment 64330 [details] [review]
check for NULL serialisation
Comment 2 Wim Taymans 2006-04-26 15:45:04 UTC
Created attachment 64331 [details] [review]
patch to fix the crasher
Comment 3 Wim Taymans 2006-04-28 13:13:40 UTC
        * 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.