[Bug 784282] New: rtspsrc crash when HTTP tunneling with digest authentication
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jun 28 12:42:05 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=784282
Bug ID: 784282
Summary: rtspsrc crash when HTTP tunneling with digest
authentication
Classification: Platform
Product: GStreamer
Version: 1.12.1
OS: Mac OS
Status: NEW
Severity: major
Priority: Normal
Component: gst-plugins-good
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: joel.gstreamer at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Starting in commit 4c7fad2dba108e5d6413579a23041445ae7df469, locks were added
in rtspsrc. However, there is one case where you try to free the mutex when it
wasn't initialized. Here is how I reproduced it:
1. Use an RTSP stream with digest authentication and HTTP tunneling.
2. Connect to the stream
3. The stream will return 401 unauthorized at first because you must
re-authenticate with digest parameters.
4. At this point in gst_rtsp_conninfo_connect, rtspsrc will immediately call
gst_rtsp_conninfo_close.
5. gst_rtsp_conninfo_close will then attempt to free the mutex with these
lines:
g_mutex_clear (&info->send_lock);
g_mutex_clear (&info->recv_lock);
6. This will lead to a crash because the mutex was never initialized. The
mutex's are only initialized after the initial connection is created which this
path never gets to.
--
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