[FFmpeg-cvslog] r22801 - trunk/libavformat/rtsp.c
mstorsjo
subversion
Sun Apr 4 23:59:07 CEST 2010
Author: mstorsjo
Date: Sun Apr 4 23:59:06 2010
New Revision: 22801
Log:
Zero-initialize the reply struct
The status_code field is read in the fail codepath, where it could be
read uninitialized earlier. Found by clang.
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c Sun Apr 4 17:35:56 2010 (r22800)
+++ trunk/libavformat/rtsp.c Sun Apr 4 23:59:06 2010 (r22801)
@@ -1442,7 +1442,7 @@ int ff_rtsp_connect(AVFormatContext *s)
char *option_list, *option, *filename;
URLContext *rtsp_hd;
int port, err, tcp_fd;
- RTSPMessageHeader reply1, *reply = &reply1;
+ RTSPMessageHeader reply1 = {}, *reply = &reply1;
int lower_transport_mask = 0;
char real_challenge[64];
struct sockaddr_storage peer;
More information about the ffmpeg-cvslog
mailing list