GNOME Bugzilla – Bug 746385
task: add function guards for gst_task_set_lock()
Last modified: 2015-08-16 13:38:01 UTC
Function gst_task_set_lock have to check for the valid arguments. NULL value for the argument cause the segmentation fault.
Created attachment 299696 [details] [review] gst_task_set_lock function validates argument GstTask* Please review the patch attached for the issue
We don't "have" to check, these checks are only there to aid developers during their plugin/application development cycle to catch problems early. Developers can't rely on those checks being there, and on most embedded systems they will not be present. commit 3cea60dc6f2d7f8641107348c4a6576308e601cc Author: Prashant Gotarne <ps.gotarne@samsung.com> Date: Wed Mar 18 16:05:34 2015 +0530 task: add function guard for _set_lock() and fix guard for _join() Should only access the object structure after checking it's valid in gst_task_join(). https://bugzilla.gnome.org/show_bug.cgi?id=746385 https://bugzilla.gnome.org/show_bug.cgi?id=746431