From e5751ced4f16fe75f835b70e37ecf48a2032506b Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 26 Jul 2009 19:53:00 +0000 Subject: Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cdda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 2403e85cd4..12063e53d8 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -346,7 +346,7 @@ static int fill_buffer(stream_t* s, char* buffer, int max_len) { if (!buf) return 0; -#ifdef WORDS_BIGENDIAN +#if HAVE_BIGENDIAN for(i=0;i Date: Mon, 27 Jul 2009 16:53:48 +0000 Subject: stream/realrtsp/real.c: Fix integer overflow Pointed-out-by: tixxDZ - DZCORE Labs, Algeria git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29447 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/realrtsp/real.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream') diff --git a/stream/realrtsp/real.c b/stream/realrtsp/real.c index 9f01a5dfb0..2e2b8cd9ca 100644 --- a/stream/realrtsp/real.c +++ b/stream/realrtsp/real.c @@ -386,6 +386,8 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer, int rdt_rawdata) { return (n <= 0) ? 0 : n; } rmff_dump_pheader(&ph, *buffer); + if (size < 12) + return 0; size-=12; n=rtsp_read_data(rtsp_session, (*buffer)+12, size); -- cgit v1.2.3 From 45b7b9374bb2a772baa34a52d1abac11c939de15 Mon Sep 17 00:00:00 2001 From: uau Date: Tue, 28 Jul 2009 16:25:03 +0000 Subject: stream/realrtsp/real.c: Fix another integer overflow git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29455 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/realrtsp/real.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream') diff --git a/stream/realrtsp/real.c b/stream/realrtsp/real.c index 2e2b8cd9ca..5b9fabe7f7 100644 --- a/stream/realrtsp/real.c +++ b/stream/realrtsp/real.c @@ -382,6 +382,8 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer, int rdt_rawdata) { ph.flags=0; *buffer = xbuffer_ensure_size(*buffer, 12+size); if(rdt_rawdata) { + if (size < 12) + return 0; n=rtsp_read_data(rtsp_session, *buffer, size-12); return (n <= 0) ? 0 : n; } -- cgit v1.2.3