[Bug 766638] ahc: fix possible NULL deref

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri May 20 06:16:56 UTC 2016


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

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
commit 8c236a9f2e681fa4756a9781b35fc53c1380cf61
Author: Martin Kelly <martin at surround.io>
Date:   Thu May 19 09:25:57 2016 -0700

    ahc: fix potential NULL deref

    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
    exiting early if android.hardware.Camera.getParameters returns NULL.

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

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