changeset 29598:8f54d278fd50

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.
author reimar
date Fri, 04 Sep 2009 09:21:06 +0000
parents ab9cec67f2a9
children 106374d8ceb7
files libmpdemux/demux_mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Fri Sep 04 07:57:06 2009 +0000
+++ b/libmpdemux/demux_mov.c	Fri Sep 04 09:21:06 2009 +0000
@@ -1445,7 +1445,7 @@
 	    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;
             }