[MPlayer-cvslog] r31241 - in branches/1.0rc3: . stream/realrtsp/real.c

diego subversion at mplayerhq.hu
Thu May 27 23:26:04 CEST 2010


Author: diego
Date: Thu May 27 23:26:04 2010
New Revision: 31241

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

backport r29455 by uau

Modified:
   branches/1.0rc3/   (props changed)
   branches/1.0rc3/stream/realrtsp/real.c

Modified: branches/1.0rc3/stream/realrtsp/real.c
==============================================================================
--- branches/1.0rc3/stream/realrtsp/real.c	Thu May 27 23:20:09 2010	(r31240)
+++ branches/1.0rc3/stream/realrtsp/real.c	Thu May 27 23:26:04 2010	(r31241)
@@ -384,6 +384,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