gdp: Fix Timmeke Waymans bug.
authorAndy Wingo <wingo@pobox.com>
Thu, 13 Oct 2005 16:26:12 +0000 (16:26 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2012 00:54:37 +0000 (01:54 +0100)
commit7e0a99936d02ca45ae68a05570b3b598e803ef61
tree2e9bbac9d393592d2bc832517bba3082471fd456
parent4447f427d783e052c52647ab919b5adebf553f33
gdp: Fix Timmeke Waymans bug.

Original commit message from CVS:
2005-10-13  Andy Wingo  <wingo@pobox.com>

* libs/gst/dataprotocol/dataprotocol.c (gst_dp_packet_from_caps):
Fix Timmeke Waymans bug.
(gst_dp_caps_from_packet): Make sure we pass a NUL-terminated
string of the proper length to gst_caps_from_string. There's a
potential for, before this fix, that this could cause someone
connecting over the network to cause a segfault if the payload is
not NUL-terminated.
gst/gdp/dataprotocol.c