rtsp: fail gracefully on bad Content-Length headers
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 10 Feb 2010 15:05:29 +0000 (16:05 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 12 Feb 2010 10:43:59 +0000 (11:43 +0100)
commitbe037e0dc8ffd67529e023d3ce8cd61a9ee2bcfb
tree3597c55cfdb4f71ac6db007b6b6b262ed6495b27
parent8b1e42f2722424864028097d7d079ac85985e23e
rtsp: fail gracefully on bad Content-Length headers

Be careful when allocating the amount of bytes specified in the Content-Length
because it can be an insanely huge value. Try to allocate the memory but fail
gracefully with a nice error when the allocation failed.
gst-libs/gst/rtsp/gstrtspconnection.c