[vlc-commits] RTSP: fix off-by-one buffer overflow

Jean-Baptiste Kempf git at videolan.org
Fri Jun 5 15:26:14 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun  5 15:25:11 2015 +0200| [626d7ef2d99f9b3f9f5cf1be16716328e3f7bf93] | committer: Jean-Baptiste Kempf

RTSP: fix off-by-one buffer overflow

Close #14820

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=626d7ef2d99f9b3f9f5cf1be16716328e3f7bf93
---

 modules/access/rtsp/rtsp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/rtsp/rtsp.c b/modules/access/rtsp/rtsp.c
index f1aabc5..1c8d0f1 100644
--- a/modules/access/rtsp/rtsp.c
+++ b/modules/access/rtsp/rtsp.c
@@ -284,7 +284,7 @@ static int rtsp_get_answers( rtsp_client_t *rtsp )
 
 int rtsp_send_ok( rtsp_client_t *rtsp )
 {
-    char cseq[16];
+    char cseq[17];
 
     rtsp_put( rtsp, "RTSP/1.0 200 OK" );
     sprintf( cseq, "CSeq: %u", rtsp->p_private->cseq );



More information about the vlc-commits mailing list