[MPlayer-cvslog] r37627 - trunk/stream/librtsp/rtsp.c
reimar
subversion at mplayerhq.hu
Mon Feb 8 22:23:11 CET 2016
Author: reimar
Date: Mon Feb 8 22:23:11 2016
New Revision: 37627
Log:
rtsp.c: Fix off-by-one error.
Need to reserve space for 0-termination.
Fixes Coverity warning.
Modified:
trunk/stream/librtsp/rtsp.c
Modified: trunk/stream/librtsp/rtsp.c
==============================================================================
--- trunk/stream/librtsp/rtsp.c Mon Feb 8 22:22:01 2016 (r37626)
+++ trunk/stream/librtsp/rtsp.c Mon Feb 8 22:23:11 2016 (r37627)
@@ -316,7 +316,7 @@ static int rtsp_get_answers(rtsp_t *s) {
}
*answer_ptr=answer;
answer_ptr++;
- } while ((strlen(answer)!=0) && (++ans_count < MAX_FIELDS));
+ } while ((strlen(answer)!=0) && (++ans_count < MAX_FIELDS - 1));
s->cseq++;
More information about the MPlayer-cvslog
mailing list