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

diego subversion at mplayerhq.hu
Thu May 27 23:20:10 CEST 2010


Author: diego
Date: Thu May 27 23:20:09 2010
New Revision: 31240

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

backport r29447 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:08:51 2010	(r31239)
+++ branches/1.0rc3/stream/realrtsp/real.c	Thu May 27 23:20:09 2010	(r31240)
@@ -388,6 +388,8 @@ int real_get_rdt_chunk(rtsp_t *rtsp_sess
     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);
 


More information about the MPlayer-cvslog mailing list