summaryrefslogtreecommitdiffstats
path: root/libmpdemux/stream_livedotcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/stream_livedotcom.c')
-rw-r--r--libmpdemux/stream_livedotcom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/stream_livedotcom.c b/libmpdemux/stream_livedotcom.c
index 0de20ce429..b07e18d406 100644
--- a/libmpdemux/stream_livedotcom.c
+++ b/libmpdemux/stream_livedotcom.c
@@ -78,6 +78,8 @@ static int open_live_sdp(stream_t *stream,int mode, void* opts, int* file_format
lseek(f,0,SEEK_SET);
if(len == -1)
return STREAM_ERROR;
+ if(len > SIZE_MAX - 1)
+ return STREAM_ERROR;
sdpDescription = (char*)malloc(len+1);
if(sdpDescription == NULL) return STREAM_ERROR;