[vlc-commits] RTSP: fix off-by-one buffer overflow
Jean-Baptiste Kempf
git at videolan.org
Sun Jun 14 19:04:31 CEST 2015
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 5 15:25:11 2015 +0200| [fb52fe76c5ab0c441b9a8f1b050ef51cd3e55121] | committer: Jean-Baptiste Kempf
RTSP: fix off-by-one buffer overflow
Close #14820
(cherry picked from commit 626d7ef2d99f9b3f9f5cf1be16716328e3f7bf93)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=fb52fe76c5ab0c441b9a8f1b050ef51cd3e55121
---
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