[Bug 766638] New: ahc: fix possible NULL deref

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 18 23:32:03 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=766638

            Bug ID: 766638
           Summary: ahc: fix possible NULL deref
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: martin at surround.io
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

This bug was found via cppcheck static analysis.

If android.hardware.Camera.getParameters returns NULL, then object will
be NULL, and we won't allocate params. This means that the GST_DEBUG
statement referencing params->object will be invalid. Fix this by
logging only if params has been allocated.

-- 
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