After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 544306 - rtspsrc debug=1 segfaults with some libc
rtspsrc debug=1 segfaults with some libc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Windows
: Normal normal
: 0.10.21
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-23 10:45 UTC by Damien Lespiau
Modified: 2008-07-23 13:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstsdp segfaults in print_media on windows (1.23 KB, patch)
2008-07-23 10:46 UTC, Damien Lespiau
committed Details | Review

Description Damien Lespiau 2008-07-23 10:45:35 UTC
printf(" %s", NULL); segfaults on most non glibc libcs.

when running rtspsrc with debug=1, gstreamer segfaults in libgstsdp. GST_STR_NULL can be used to fix this, patch follows.
Comment 1 Damien Lespiau 2008-07-23 10:46:36 UTC
Created attachment 115087 [details] [review]
gstsdp segfaults in print_media on windows
Comment 2 Tim-Philipp Müller 2008-07-23 13:17:29 UTC
Committed, thanks:

 2008-07-23  Tim-Philipp Müller  <tim.muller at collabora co uk>

	Patch by: Damien Lespiau  <damien.lespiau gmail com>

	* gst-libs/gst/sdp/gstsdpmessage.c: (print_media):
	  Use GST_STR_NULL to avoid crashes with libcs that don't
	  like NULL strings in printf args (such as the win32 one).
	  Fixes #544306.