[MPlayer-cvslog] r29640 - trunk/libmpdemux/demux_mov.c

reimar subversion at mplayerhq.hu
Fri Sep 4 11:21:06 CEST 2009


Author: reimar
Date: Fri Sep  4 11:21:06 2009
New Revision: 29640

Log:
100l, SIZE_MAX must be UINT_MAX to prevent an integer overflow later on,
also it is preferable if demuxer parsing does not differ between architectures.

Modified:
   trunk/libmpdemux/demux_mov.c

Modified: trunk/libmpdemux/demux_mov.c
==============================================================================
--- trunk/libmpdemux/demux_mov.c	Fri Sep  4 09:57:06 2009	(r29639)
+++ trunk/libmpdemux/demux_mov.c	Fri Sep  4 11:21:06 2009	(r29640)
@@ -1445,7 +1445,7 @@ static void lschunks(demuxer_t* demuxer,
 	    z_stream zstrm;
 	    stream_t* backup;
 
-	    if (moov_sz > SIZE_MAX - 16) {
+	    if (moov_sz > UINT_MAX - 16) {
               mp_msg(MSGT_DEMUX, MSGL_ERR, "Invalid cmvd atom size %d\n", moov_sz);
               break;
             }


More information about the MPlayer-cvslog mailing list