[MPlayer-cvslog] r29455 - trunk/stream/realrtsp/real.c

uau subversion at mplayerhq.hu
Tue Jul 28 18:25:04 CEST 2009


Author: uau
Date: Tue Jul 28 18:25:03 2009
New Revision: 29455

Log:
stream/realrtsp/real.c: Fix another integer overflow

Modified:
   trunk/stream/realrtsp/real.c

Modified: trunk/stream/realrtsp/real.c
==============================================================================
--- trunk/stream/realrtsp/real.c	Tue Jul 28 07:45:47 2009	(r29454)
+++ trunk/stream/realrtsp/real.c	Tue Jul 28 18:25:03 2009	(r29455)
@@ -382,6 +382,8 @@ int real_get_rdt_chunk(rtsp_t *rtsp_sess
     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;
   }


More information about the MPlayer-cvslog mailing list