# HG changeset patch # User michael # Date 1233089470 0 # Node ID e6b06b0c611a0a6dd63dadd25e0e512d6f5f7ced # Parent 491a0b1d4f624e50162009b828736a5c37e665cf size < 4 is invalid diff -r 491a0b1d4f62 -r e6b06b0c611a 4xm.c --- a/4xm.c Tue Jan 27 18:01:26 2009 +0000 +++ b/4xm.c Tue Jan 27 20:51:10 2009 +0000 @@ -114,7 +114,7 @@ /* check for LIST-HEAD */ GET_LIST_HEADER(); header_size = size - 4; - if (fourcc_tag != HEAD_TAG) + if (fourcc_tag != HEAD_TAG || size < 4) return AVERROR_INVALIDDATA; /* allocate space for the header and load the whole thing */