[FFmpeg-cvslog] r9492 - trunk/libavformat/rtsp.c
benoit
subversion
Thu Jul 5 22:58:34 CEST 2007
Author: benoit
Date: Thu Jul 5 22:58:34 2007
New Revision: 9492
Log:
check udp_read_packet return value not to access uninitialized memory
patch by Eric Paul: [eric paul gmail com]
original thread: [FFmpeg-devel] [PATCH] : libavformat segfault when a
RTSP reading is interrupted
date: 07/05/2007 03:13 PM
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c (original)
+++ trunk/libavformat/rtsp.c Thu Jul 5 22:58:34 2007
@@ -1194,7 +1194,7 @@ static int rtsp_read_packet(AVFormatCont
case RTSP_PROTOCOL_RTP_UDP:
case RTSP_PROTOCOL_RTP_UDP_MULTICAST:
len = udp_read_packet(s, &rtsp_st, buf, sizeof(buf));
- if (rtsp_st->rtp_ctx)
+ if (len >=0 && rtsp_st->rtp_ctx)
rtp_check_and_send_back_rr(rtsp_st->rtp_ctx, len);
break;
}
More information about the ffmpeg-cvslog
mailing list