diff idroq.c @ 643:253b5292946a libavformat

various security fixes and precautionary checks
author michael
date Wed, 12 Jan 2005 00:16:25 +0000
parents 0fdc96c2f2fe
children c5077fdab490
line wrap: on
line diff
--- a/idroq.c	Tue Jan 11 08:16:04 2005 +0000
+++ b/idroq.c	Wed Jan 12 00:16:25 2005 +0000
@@ -196,6 +196,8 @@
 
         chunk_type = LE_16(&preamble[0]);
         chunk_size = LE_32(&preamble[2]);
+        if(chunk_size > INT_MAX)
+            return AVERROR_INVALIDDATA;
 
         switch (chunk_type) {