[Bug 642949] New: pbutils: encoding-target: chaining error object in loading target from file may cause crash if there is no error

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Feb 22 00:53:01 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=642949
  GStreamer | gst-plugins-base | git

           Summary: pbutils: encoding-target: chaining error object in
                    loading target from file may cause crash if there is
                    no error
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: teemu.katajisto at digia.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
      GNOME target: ---
     GNOME version: ---


If application passed GError object pointer set to NULL to
gst_encoding_target_load_from_file function the error handling in
load_file_and_read_header may cause crash in error printing if no actual error
happens.

Instead of chaining the error object use temporary error and g_propagate_error
to report errors happening in g_key_file_load_from_file to application level.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list